fixed sidebar issue

This commit is contained in:
asaki222 2025-01-10 15:35:09 -05:00
parent 53f48ba234
commit 737851d4a6
No known key found for this signature in database
GPG key ID: C51913A3A09FDC03
2 changed files with 4 additions and 2 deletions

View file

@ -79,7 +79,8 @@
{% with url_name="domain-users" %}
{% include "includes/domain_sidenav_item.html" with item_text="Domain managers" %}
{% endwith %}
{% if has_domain_renewal_flag and is_domain_manager%}
{% if domain.is_expiring or domain.is_expired %}
{% with url_name="domain-renewal" %}

View file

@ -330,7 +330,6 @@ class DomainRenewalView(DomainView):
def post(self, request, pk):
print("**** POST data:", request.POST)
domain = get_object_or_404(Domain, id=pk)
form = DomainRenewalForm(request.POST)
@ -358,6 +357,8 @@ class DomainRenewalView(DomainView):
"domain": domain,
"form": form,
"is_editable": True,
"has_domain_renewal_flag": True,
"is_domain_manager": True,
},
)