chapeau/kepi/bowler_pub/forms.py

27 wiersze
591 B
Python
Czysty Zwykły widok Historia

2019-08-14 17:59:28 +00:00
# forms.py
#
# Part of kepi, an ActivityPub daemon.
2019-08-14 17:59:28 +00:00
# Copyright (c) 2018-2019 Marnanel Thurman.
# Licensed under the GNU Public License v2.
"""
This module contains some forms which are used by
the admin interface. It's not very elaborate yet.
"""
2019-08-05 19:37:02 +00:00
from django import forms
import kepi.bowler_pub.models as bowler_pub_models
2019-08-05 19:37:02 +00:00
class NoteAdminForm(forms.ModelForm):
class Meta:
model = bowler_pub_models.AcNote
fields = [
'f_content',
'f_attributedTo',
]
f_content = forms.CharField(
widget = forms.Textarea)