Added list display of Places and PhotoAlbums admin pages.
This commit is contained in:
parent
30b42de86f
commit
86915f6ec5
@ -16,8 +16,14 @@ class VoucherAdmin(admin.ModelAdmin):
|
|||||||
fields = ['code', 'expires_when', 'created_when']
|
fields = ['code', 'expires_when', 'created_when']
|
||||||
readonly_fields = ['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(Explorer)
|
||||||
admin.site.register(Voucher, VoucherAdmin)
|
admin.site.register(Voucher, VoucherAdmin)
|
||||||
admin.site.register(Place)
|
admin.site.register(Place, PlacesAdmin)
|
||||||
admin.site.register(PlaceImage)
|
admin.site.register(PlaceImage)
|
||||||
admin.site.register(PhotoAlbum)
|
admin.site.register(PhotoAlbum, PhotoAlbumsAdmin)
|
||||||
|
Loading…
Reference in New Issue
Block a user