Novinky | CKEditor
This commit is contained in:
parent
60a93713b3
commit
3ed0e6d6d0
1 changed files with 9 additions and 1 deletions
|
@ -319,7 +319,15 @@ admin.site.register(Soustredeni, SoustredeniAdmin)
|
||||||
|
|
||||||
### Novinky
|
### 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):
|
class NovinkyAdmin(admin.ModelAdmin):
|
||||||
pass
|
form = NovinkyAdminForm
|
||||||
|
|
||||||
|
|
||||||
admin.site.register(Novinky, NovinkyAdmin)
|
admin.site.register(Novinky, NovinkyAdmin)
|
||||||
|
|
Loading…
Reference in a new issue