|
@ -246,9 +246,9 @@ from autocomplete_light.contrib.taggit_field import TaggitField, TaggitWidget |
|
|
#TODO: Autocomplete autor/opravovatel |
|
|
#TODO: Autocomplete autor/opravovatel |
|
|
|
|
|
|
|
|
class ProblemAdminForm(forms.ModelForm): |
|
|
class ProblemAdminForm(forms.ModelForm): |
|
|
text_zadani = forms.CharField(widget=CKEditorWidget(), **field_labels(Problem, 'text_zadani')) |
|
|
text_zadani = forms.CharField(widget=CKEditorWidget(), required=False, **field_labels(Problem, 'text_zadani')) |
|
|
text_reseni = forms.CharField(widget=CKEditorWidget(), **field_labels(Problem, 'text_reseni')) |
|
|
text_reseni = forms.CharField(widget=CKEditorWidget(), required=False, **field_labels(Problem, 'text_reseni')) |
|
|
text_org = forms.CharField(widget=CKEditorWidget(), **field_labels(Problem, 'text_org')) |
|
|
text_org = forms.CharField(widget=CKEditorWidget(), required=False, **field_labels(Problem, 'text_org')) |
|
|
zamereni = TaggitField(widget=TaggitWidget('TagAutocomplete')) |
|
|
zamereni = TaggitField(widget=TaggitWidget('TagAutocomplete')) |
|
|
class Meta: |
|
|
class Meta: |
|
|
model = Problem |
|
|
model = Problem |
|
@ -299,7 +299,7 @@ create_modeladmin(ProblemZadanyAdmin, Problem, 'ProblemZadany', verbose_name=u'P |
|
|
### Soustredeni |
|
|
### Soustredeni |
|
|
|
|
|
|
|
|
class SoustredeniAdminForm(forms.ModelForm): |
|
|
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: |
|
|
class Meta: |
|
|
model = Soustredeni |
|
|
model = Soustredeni |
|
|
exclude = [] |
|
|
exclude = [] |
|
|