From 9a620cf42bf1fe6977e378bd834b41ff4a593dde Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 28 Jul 2023 13:39:02 -0500 Subject: main: removed some apps I wasn't using and added bak to git to preserve a copy of old apps --- bak/unused_apps/ccg_notes/forms.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 bak/unused_apps/ccg_notes/forms.py (limited to 'bak/unused_apps/ccg_notes/forms.py') 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}), + } -- cgit v1.2.3-70-g09d2