form.py
This commit is contained in:
parent
90f8490d72
commit
dc73e1d742
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ class DocumentAdminForm(forms.ModelForm):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Document
|
model = Document
|
||||||
fields = '__all__'
|
fields = ('titre', 'texte','published')
|
||||||
widgets = {
|
widgets = {
|
||||||
'texte': TinyMCE(attrs={'cols': 120, 'rows': 30}),
|
'texte': TinyMCE(attrs={'cols': 120, 'rows': 30}),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue