Added list display of Places and PhotoAlbums admin pages.

This commit is contained in:
Marcus Scholz 2020-09-18 20:21:30 +02:00
parent 30b42de86f
commit 86915f6ec5

View File

@ -16,8 +16,14 @@ class VoucherAdmin(admin.ModelAdmin):
fields = ['code', 'expires_when', 'created_when']
readonly_fields = ['created_when']
class PhotoAlbumsAdmin(admin.ModelAdmin):
list_display = ('label', 'place', 'url' )
class PlacesAdmin(admin.ModelAdmin):
list_display = ('name', 'submitted_by', 'submitted_when')
admin.site.register(Explorer)
admin.site.register(Voucher, VoucherAdmin)
admin.site.register(Place)
admin.site.register(Place, PlacesAdmin)
admin.site.register(PlaceImage)
admin.site.register(PhotoAlbum)
admin.site.register(PhotoAlbum, PhotoAlbumsAdmin)