Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gsa-suk committed Dec 16, 2024
1 parent bbe2f45 commit fe61234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/support/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def change_view(self, request, object_id, form_url="", extra_context=None):
extra_context = extra_context or {}
extra_context["show_save_and_continue"] = False
extra_context["show_save"] = False
extra_context[
"show_save_and_add_another"
] = False # this does not work if has_add_permision is True
extra_context["show_save_and_add_another"] = (
False # this does not work if has_add_permision is True
)
return super().change_view(request, object_id, extra_context=extra_context)

def save_model(self, request, obj, form, change):
Expand Down

0 comments on commit fe61234

Please sign in to comment.