X-Git-Url: https://git.0d.be/?p=django-panik-combo.git;a=blobdiff_plain;f=panikombo%2Fforms.py;h=d7a20a6fe0d7092973ae6e95f53995742cb16054;hp=b4b4ef7efcc16664b515ed2dff919769e7be2134;hb=efe26dec17e20d9e10317a12a6e8aaf2b7732345;hpb=67cd6d0e88e2797e38b7025f7812a4fe8b37eaa8;ds=sidebyside diff --git a/panikombo/forms.py b/panikombo/forms.py index b4b4ef7..d7a20a6 100644 --- a/panikombo/forms.py +++ b/panikombo/forms.py @@ -5,7 +5,7 @@ from taggit.forms import TagWidget from emissions.models import SoundFile, Episode from .models import (SoundCell, EpisodeCell, EpisodeAutoSelectionCell, - NewsItemAutoSelectionCell) + NewsItemAutoSelectionCell, Topik) from .views import soundfiles, episodes class SoundFileWidget(HeavySelect2Widget): @@ -60,3 +60,9 @@ class NewsItemAutoSelectionCellForm(forms.ModelForm): model = NewsItemAutoSelectionCell fields = ('title', 'tags', 'future') widgets = {'tags': TagWidget()} + + +class TopikEditForm(forms.ModelForm): + class Meta: + model = Topik + fields = ('image',)