summaryrefslogtreecommitdiff
path: root/app/links/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/links/forms.py')
-rw-r--r--app/links/forms.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/links/forms.py b/app/links/forms.py
new file mode 100644
index 0000000..ca6205b
--- /dev/null
+++ b/app/links/forms.py
@@ -0,0 +1,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