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):
model = EpisodeAutoSelectionCell
fields = ('title', 'tags', 'category')
widgets = {'tags': TagWidget()}
+
+
+class NewsItemAutoSelectionCellForm(forms.ModelForm):
+ class Meta:
+ model = NewsItemAutoSelectionCell
+ fields = ('title', 'tags', 'future')
+ widgets = {'tags': TagWidget()}