Add parent albums

This commit is contained in:
Nyymix 2025-01-18 09:40:47 +02:00
parent f3a94857d0
commit b7c183d2f3
3 changed files with 16 additions and 4 deletions

View file

@ -39,7 +39,7 @@ class AlbumAdmin(admin.ModelAdmin):
prepopulated_fields = {'slug': ('name',)}
list_display = ('__str__', 'location', 'album_date', 'is_public', 'thumbnail', )
search_fields = ('name',)
ordering = ('name',)
ordering = ('-album_date',)
list_per_page = 30
list_editable = ('is_public', 'location')