mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 19:09:22 +02:00
Fix bug
This commit is contained in:
parent
27b3322843
commit
df1dee65cb
1 changed files with 3 additions and 2 deletions
|
@ -1664,8 +1664,9 @@ class DomainAdmin(ListHeaderAdmin):
|
|||
if object_id is not None:
|
||||
domain = Domain.objects.get(pk=object_id)
|
||||
|
||||
# Use in the custom contact view
|
||||
extra_context["original_object"] = domain.domain_info
|
||||
# Used in the custom contact view
|
||||
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
|
||||
years_to_extend_by = self._get_calculated_years_for_exp_date(domain)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue