Odstranena nutna neprazdnost rich textu v adminu
This commit is contained in:
parent
234203c570
commit
b4c5b3585c
1 changed files with 4 additions and 4 deletions
|
@ -246,9 +246,9 @@ from autocomplete_light.contrib.taggit_field import TaggitField, TaggitWidget
|
|||
#TODO: Autocomplete autor/opravovatel
|
||||
|
||||
class ProblemAdminForm(forms.ModelForm):
|
||||
text_zadani = forms.CharField(widget=CKEditorWidget(), **field_labels(Problem, 'text_zadani'))
|
||||
text_reseni = forms.CharField(widget=CKEditorWidget(), **field_labels(Problem, 'text_reseni'))
|
||||
text_org = forms.CharField(widget=CKEditorWidget(), **field_labels(Problem, 'text_org'))
|
||||
text_zadani = forms.CharField(widget=CKEditorWidget(), required=False, **field_labels(Problem, 'text_zadani'))
|
||||
text_reseni = forms.CharField(widget=CKEditorWidget(), required=False, **field_labels(Problem, 'text_reseni'))
|
||||
text_org = forms.CharField(widget=CKEditorWidget(), required=False, **field_labels(Problem, 'text_org'))
|
||||
zamereni = TaggitField(widget=TaggitWidget('TagAutocomplete'))
|
||||
class Meta:
|
||||
model = Problem
|
||||
|
@ -299,7 +299,7 @@ create_modeladmin(ProblemZadanyAdmin, Problem, 'ProblemZadany', verbose_name=u'P
|
|||
### Soustredeni
|
||||
|
||||
class SoustredeniAdminForm(forms.ModelForm):
|
||||
text = forms.CharField(widget=CKEditorWidget(), **field_labels(Soustredeni, 'text'))
|
||||
text = forms.CharField(widget=CKEditorWidget(), required=False, **field_labels(Soustredeni, 'text'))
|
||||
class Meta:
|
||||
model = Soustredeni
|
||||
exclude = []
|
||||
|
|
Loading…
Reference in a new issue