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