Added Admin panel representation for ExternalLinks.

This commit is contained in:
Marcus Scholz 2021-10-02 02:11:44 +02:00
parent caa69d6e6e
commit c3ea5cdccd

View File

@ -24,6 +24,9 @@ class VoucherAdmin(admin.ModelAdmin):
class PhotoAlbumsAdmin(admin.ModelAdmin):
list_display = ('label', 'place', 'url' )
class ExternalLinksAdmin(admin.ModelAdmin):
list_display = ('label', 'place', 'url', 'linktype' )
class PlacesAdmin(admin.ModelAdmin):
list_display = ('name', 'submitted_by', 'submitted_when')
@ -35,3 +38,4 @@ admin.site.register(Voucher, VoucherAdmin)
admin.site.register(Place, PlacesAdmin)
admin.site.register(PlaceImage, PlaceImagesAdmin)
admin.site.register(PhotoAlbum, PhotoAlbumsAdmin)
admin.site.register(ExternalLink, ExternalLinksAdmin)