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' ) }