diff --git a/gallery/admin.py b/gallery/admin.py index e671ec5..13bd513 100644 --- a/gallery/admin.py +++ b/gallery/admin.py @@ -71,6 +71,7 @@ class AlbumAdmin(admin.ModelAdmin): list_editable = ('is_public',) readonly_fields = ['cover_preview'] change_form_template = "admin/gallery/album/change_form.html" + autocomplete_fields = ['cover'] def get_urls(self): """Add custom upload route to admin."""