|
@ -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) |
|
|