diff options
Diffstat (limited to 'app/jrnl/admin.py')
-rw-r--r-- | app/jrnl/admin.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/jrnl/admin.py b/app/jrnl/admin.py index 1769ebe..3c35272 100644 --- a/app/jrnl/admin.py +++ b/app/jrnl/admin.py @@ -21,6 +21,9 @@ class EntryAdmin(OSMGeoAdmin): def formfield_for_dbfield(self, db_field, **kwargs): if db_field.name == 'thumbnail' or db_field.name == 'image': field = forms.FileField(widget=AdminImageWidget) + elif db_field.name == 'meta_description': + field = forms.CharField(widget=forms.Textarea(attrs={'rows': 4, 'cols': 75})) + field.required = False else: field = super(EntryAdmin, self).formfield_for_dbfield(db_field, **kwargs) return field @@ -34,6 +37,7 @@ class EntryAdmin(OSMGeoAdmin): ('Entry', { 'fields': ( 'title', + 'subtitle', 'body_markdown', ('pub_date', 'status'), 'slug', |