Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(admin): show save buttons on top by default
Browse files Browse the repository at this point in the history
leo-naeka committed Apr 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent b001861 commit 9bb9468
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions itou/utils/admin.py
Original file line number Diff line number Diff line change
@@ -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():

0 comments on commit 9bb9468

Please sign in to comment.