This commit is contained in:
zandercymatics 2024-04-15 09:43:19 -06:00
parent 27b3322843
commit df1dee65cb
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -1664,8 +1664,9 @@ class DomainAdmin(ListHeaderAdmin):
if object_id is not None: if object_id is not None:
domain = Domain.objects.get(pk=object_id) domain = Domain.objects.get(pk=object_id)
# Use in the custom contact view # Used in the custom contact view
extra_context["original_object"] = domain.domain_info if domain is not None and hasattr(domain, "domain_info"):
extra_context["original_object"] = domain.domain_info
# Pass in what the an extended expiration date would be for the expiration date modal # Pass in what the an extended expiration date would be for the expiration date modal
years_to_extend_by = self._get_calculated_years_for_exp_date(domain) years_to_extend_by = self._get_calculated_years_for_exp_date(domain)