From c3ea5cdccd398ea07df9f524520b268db51750d4 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sat, 2 Oct 2021 02:11:44 +0200 Subject: [PATCH] Added Admin panel representation for ExternalLinks. --- django_lostplaces/lostplaces/admin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/django_lostplaces/lostplaces/admin.py b/django_lostplaces/lostplaces/admin.py index ec58dac..a771a8a 100644 --- a/django_lostplaces/lostplaces/admin.py +++ b/django_lostplaces/lostplaces/admin.py @@ -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)