Add autocomplete cover in admin
This commit is contained in:
parent
eeff75a3e9
commit
eaae4f96d1
1 changed files with 1 additions and 0 deletions
|
@ -71,6 +71,7 @@ class AlbumAdmin(admin.ModelAdmin):
|
||||||
list_editable = ('is_public',)
|
list_editable = ('is_public',)
|
||||||
readonly_fields = ['cover_preview']
|
readonly_fields = ['cover_preview']
|
||||||
change_form_template = "admin/gallery/album/change_form.html"
|
change_form_template = "admin/gallery/album/change_form.html"
|
||||||
|
autocomplete_fields = ['cover']
|
||||||
|
|
||||||
def get_urls(self):
|
def get_urls(self):
|
||||||
"""Add custom upload route to admin."""
|
"""Add custom upload route to admin."""
|
||||||
|
|
Loading…
Add table
Reference in a new issue