Add autocomplete cover in admin
This commit is contained in:
parent
eeff75a3e9
commit
eaae4f96d1
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Reference in New Issue