Remove date_added field in Gallery
This commit is contained in:
parent
80085edeeb
commit
2ef6dd2a44
3 changed files with 26 additions and 7 deletions
|
|
@ -5,9 +5,9 @@ from .models import Gallery, Photo, Tag
|
|||
|
||||
|
||||
class GalleryAdmin(admin.ModelAdmin):
|
||||
list_display = ('title', 'date_added', 'photo_count', 'is_public')
|
||||
list_filter = ['date_added', 'is_public']
|
||||
date_hierarchy = 'date_added'
|
||||
list_display = ('title', 'date_start', 'photo_count', 'is_public')
|
||||
list_filter = ['date_start', 'is_public']
|
||||
date_hierarchy = 'date_start'
|
||||
prepopulated_fields = {'slug': ('title',)}
|
||||
model = Gallery
|
||||
autocomplete_fields = ['photos', 'tags']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue