Skip to content

Commit

Permalink
chore(admin): show save buttons on top by default
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-naeka committed Apr 25, 2024
1 parent 4dabc06 commit cd2c507
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
Expand Up @@ -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():
Expand Down

0 comments on commit cd2c507

Please sign in to comment.