Browse Source

Novinky | CKEditor

remotes/origin/vysl
Bc. Petr Pecha 10 years ago
parent
commit
3ed0e6d6d0
  1. 10
      seminar/admin.py

10
seminar/admin.py

@ -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…
Cancel
Save