From cf6e01d2802880744cb697470df98286efea4eb7 Mon Sep 17 00:00:00 2001 From: Ambulance Clerc Date: Sun, 25 Feb 2024 09:23:39 +0100 Subject: [PATCH 1/3] add save_as in info_vhc (duplicate butto) --- vehicles/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicles/admin.py b/vehicles/admin.py index 2807fa2..0904759 100644 --- a/vehicles/admin.py +++ b/vehicles/admin.py @@ -30,7 +30,7 @@ class _vhc_admin(admin.ModelAdmin): ) class _vhc_infos_admin(admin.ModelAdmin): - + save_as = True list_display = ('Vehicle', 'nType', 'sDesc') list_filter = [ From 0d914cb024d6d32ce5c06f4e3978356bf9762bf2 Mon Sep 17 00:00:00 2001 From: Ambulance Clerc Date: Sun, 25 Feb 2024 09:27:00 +0100 Subject: [PATCH 2/3] add save_as in collabs (duplicate butto) --- collabs/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/collabs/admin.py b/collabs/admin.py index cc084cf..089c5c0 100644 --- a/collabs/admin.py +++ b/collabs/admin.py @@ -53,6 +53,7 @@ class Collabs_hour_Form_admin(forms.ModelForm): class Collabs_hour_Admin(admin.ModelAdmin): always_show_username = True + save_as = True From 0ac75168fdb32ce49930406f75d4fd4ebdd89b51 Mon Sep 17 00:00:00 2001 From: Ambulance Clerc Date: Sun, 25 Feb 2024 11:42:55 +0100 Subject: [PATCH 3/3] add save_as in commOp (duplicate button) --- comm_op/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/comm_op/admin.py b/comm_op/admin.py index 36ee0c0..4fa33ae 100644 --- a/comm_op/admin.py +++ b/comm_op/admin.py @@ -6,6 +6,7 @@ from django.contrib.auth.models import User @admin.register(comm_opMessage) class MessageAdmin(admin.ModelAdmin): + save_as = True always_show_username = True fieldsets = [ (None, {'fields': ['sKey','sTitle','sDesc', 'bDone']}),