blob: 80a7c500941a6536c632499e0609359433edb807 (
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 Link
from dal import autocomplete
class LinkForm(autocomplete.FutureModelForm):
class Meta:
model = Link
fields = ('tags',)
widgets = {
'tags': autocomplete.TaggitSelect2(
'tag-autocomplete'
)
}
|