|
|
@ -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 = [] |
|
|
|