Novinky | CKEditor

This commit is contained in:
Bc. Petr Pecha 2015-06-23 11:46:45 +02:00
parent 60a93713b3
commit 3ed0e6d6d0

View file

@ -319,7 +319,15 @@ admin.site.register(Soustredeni, SoustredeniAdmin)
### Novinky
class NovinkyAdminForm(forms.ModelForm):
text = forms.CharField(widget=CKEditorWidget(), required=False,
**field_labels(Novinky, 'text'))
class Meta:
model = Novinky
exclude = []
class NovinkyAdmin(admin.ModelAdmin):
pass
form = NovinkyAdminForm
admin.site.register(Novinky, NovinkyAdmin)