diff options
Diffstat (limited to 'app/jrnl/admin.py')
-rw-r--r-- | app/jrnl/admin.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/jrnl/admin.py b/app/jrnl/admin.py index 52ab083..1769ebe 100644 --- a/app/jrnl/admin.py +++ b/app/jrnl/admin.py @@ -100,15 +100,9 @@ class HomepageCurratorAdmin(admin.ModelAdmin): @admin.register(Home) class HomeAdmin(admin.ModelAdmin): + form = LGEntryForm filter_horizontal = ('popular',) - def formfield_for_dbfield(self, db_field, **kwargs): - if db_field.name == 'thumbnail' or db_field.name == 'image': - field = forms.FileField(widget=AdminImageWidget) - else: - field = super(EntryAdmin, self).formfield_for_dbfield(db_field, **kwargs) - return field - class Media: js = ('image-loader.js', 'next-prev-links.js') css = { |