blob: 5de83bded2ecc82aace72328493757b07d9599d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
from django import forms
import autocomplete_light
from autocomplete_light.contrib.taggit_field import TaggitField, TaggitWidget
from .models import CcgNote
class CcgNoteForm(forms.ModelForm):
tags = TaggitField(widget=TaggitWidget('TagAutocomplete'))
class Meta:
widgets = {
'body_markdown': forms.Textarea(attrs={'rows': 18, 'cols': 60}),
}
fields = '__all__'
model = CcgNote
|