Increase article content widget
This commit is contained in:
parent
6e3daeac3b
commit
f2a3f3efeb
1 changed files with 1 additions and 3 deletions
|
@ -46,9 +46,7 @@ class ArticleAdmin(admin.ModelAdmin):
|
||||||
"published_at",
|
"published_at",
|
||||||
]
|
]
|
||||||
formfield_overrides = {
|
formfield_overrides = {
|
||||||
models.TextField: {
|
models.TextField: {"widget": forms.Textarea(attrs={"style": "width: 98%"})},
|
||||||
"widget": forms.Textarea(attrs={"cols": "100", "rows": "50"})
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
prepopulated_fields = {"slug": ("title",)}
|
prepopulated_fields = {"slug": ("title",)}
|
||||||
change_form_template = "articles/article_change_form.html"
|
change_form_template = "articles/article_change_form.html"
|
||||||
|
|
Reference in a new issue