From cd2c5072f942a8d0e116d1524cf73b8fdb15c1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Le=CC=81o=20S?= Date: Mon, 22 Apr 2024 15:03:47 +0200 Subject: [PATCH] chore(admin): show save buttons on top by default --- itou/utils/admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/itou/utils/admin.py b/itou/utils/admin.py index a430c413d7..9d7309a796 100644 --- a/itou/utils/admin.py +++ b/itou/utils/admin.py @@ -112,6 +112,9 @@ def get_actions(self, request): class ItouModelAdmin(ModelAdmin): + # Add save buttons on top of each change forms by default + save_on_top = True + def _get_queryset_with_relations(self, request): select_related_fields, prefetch_related_fields = set(), set() for field in self.model._meta.get_fields():