From 02424115f21c03b4e2c43ddf0bdd0ef116da6c8e Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Thu, 29 Jul 2021 09:32:07 +0200 Subject: [PATCH] enable save as new for Facility, FacilityType, facilityOpeningHours admin --- src/facilities/admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/facilities/admin.py b/src/facilities/admin.py index 177a830a..542c99a7 100644 --- a/src/facilities/admin.py +++ b/src/facilities/admin.py @@ -18,12 +18,14 @@ class FacilityQuickFeedbackAdmin(admin.ModelAdmin): @admin.register(FacilityType) class FacilityTypeAdmin(admin.ModelAdmin): + save_as = True list_display = ["name", "description", "icon", "marker", "responsible_team", "camp"] list_filter = ["responsible_team__camp", "icon", "marker", "responsible_team"] @admin.register(Facility) class FacilityAdmin(LeafletGeoAdmin): + save_as = True list_display = [ "name", "description", @@ -73,5 +75,6 @@ class FacilityFeedbackAdmin(admin.ModelAdmin): @admin.register(FacilityOpeningHours) class FacilityOpeningHoursAdmin(admin.ModelAdmin): + save_as = True list_display = ["facility", "when", "notes"] list_filter = ["facility"]