blob: 09343069ac2af690fdaa5414679bf5da9fc2dd7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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}),
}
|