Hide photos field in Gallery admin
This commit is contained in:
parent
970db0dc05
commit
95243c4d06
1 changed files with 2 additions and 1 deletions
|
|
@ -10,7 +10,8 @@ class GalleryAdmin(admin.ModelAdmin):
|
|||
date_hierarchy = 'date_start'
|
||||
prepopulated_fields = {'slug': ('title',)}
|
||||
model = Gallery
|
||||
autocomplete_fields = ['photos', 'tags']
|
||||
exclude = ['photos']
|
||||
autocomplete_fields = ['tags']
|
||||
search_fields = ['title', ]
|
||||
|
||||
def get_tags(self, obj):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue