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