Fix spacing

This commit is contained in:
Rebecca Hsieh 2025-02-10 12:54:52 -08:00
parent 16e251c4fc
commit 8464cf7bda
No known key found for this signature in database
2 changed files with 9 additions and 2 deletions

View file

@ -1518,6 +1518,14 @@ class DomainInvitationAdmin(BaseInvitationAdmin):
change_form_template = "django/admin/domain_invitation_change_form.html"
# Select domain invitations to change -> Domain invitations
def changelist_view(self, request, extra_context=None):
if extra_context is None:
extra_context = {}
extra_context["tabtitle"] = "Domain invitations"
# Get the filtered values
return super().changelist_view(request, extra_context=extra_context)
def change_view(self, request, object_id, form_url="", extra_context=None):
"""Override the change_view to add the invitation obj for the change_form_object_tools template"""

View file

@ -10,5 +10,4 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
{% else %}
{{ block.super }}
{% endif %}
{% endblock field_other %}
{% endblock field_other %}