diff options
Diffstat (limited to 'bak/unused_apps/ccg_notes/forms.py')
-rw-r--r-- | bak/unused_apps/ccg_notes/forms.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bak/unused_apps/ccg_notes/forms.py b/bak/unused_apps/ccg_notes/forms.py new file mode 100644 index 0000000..0934306 --- /dev/null +++ b/bak/unused_apps/ccg_notes/forms.py @@ -0,0 +1,17 @@ +from django import forms +import dal +from dal_select2_taggit.widgets import TaggitSelect2 +from .models import CcgNote +from dal import autocomplete + + +class CcgNoteForm(autocomplete.FutureModelForm): + class Meta: + model = CcgNote + fields = ('tags',) + widgets = { + 'tags': autocomplete.TaggitSelect2( + 'tag-autocomplete' + ), + 'body_markdown': forms.Textarea(attrs={'rows': 18, 'cols': 60}), + } |