projects
/
django-panik-combo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add Topik object, wrapper around Page
[django-panik-combo.git]
/
panikombo
/
forms.py
diff --git
a/panikombo/forms.py
b/panikombo/forms.py
index
b4b4ef7
..
d7a20a6
100644
(file)
--- 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,
from emissions.models import SoundFile, Episode
from .models import (SoundCell, EpisodeCell, EpisodeAutoSelectionCell,
- NewsItemAutoSelectionCell)
+ NewsItemAutoSelectionCell
, Topik
)
from .views import soundfiles, episodes
class SoundFileWidget(HeavySelect2Widget):
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()}
model = NewsItemAutoSelectionCell
fields = ('title', 'tags', 'future')
widgets = {'tags': TagWidget()}
+
+
+class TopikEditForm(forms.ModelForm):
+ class Meta:
+ model = Topik
+ fields = ('image',)