]> git.0d.be Git - django-panik-combo.git/blobdiff - panikombo/forms.py
add newsitem auto selection
[django-panik-combo.git] / panikombo / forms.py
index d9f60ec328c9afbfd9ddaa4834a0abfac0de2512..b4b4ef7efcc16664b515ed2dff919769e7be2134 100644 (file)
@@ -4,7 +4,8 @@ from taggit.forms import TagWidget
 
 from emissions.models import SoundFile, Episode
 
-from .models import SoundCell, EpisodeCell, EpisodeAutoSelectionCell
+from .models import (SoundCell, EpisodeCell, EpisodeAutoSelectionCell,
+        NewsItemAutoSelectionCell)
 from .views import soundfiles, episodes
 
 class SoundFileWidget(HeavySelect2Widget):
@@ -52,3 +53,10 @@ class EpisodeAutoSelectionCellForm(forms.ModelForm):
         model = EpisodeAutoSelectionCell
         fields = ('title', 'tags', 'category')
         widgets = {'tags': TagWidget()}
+
+
+class NewsItemAutoSelectionCellForm(forms.ModelForm):
+    class Meta:
+        model = NewsItemAutoSelectionCell
+        fields = ('title', 'tags', 'future')
+        widgets = {'tags': TagWidget()}