from django import forms import autocomplete_light from autocomplete_light.contrib.taggit_field import TaggitField, TaggitWidget from .models import Link class LinkForm(forms.ModelForm): tags = TaggitField(widget=TaggitWidget('TagAutocomplete')) class Meta: fields = '__all__' model = Link