summaryrefslogtreecommitdiff
path: root/app/links/forms.py
blob: ca6205ba7bb9b6e0e5040e3f1ac756f3f91d5cb2 (plain)
1
2
3
4
5
6
7
8
9
10
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