mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 14:06:32 +02:00
Print statements
This commit is contained in:
parent
482b456417
commit
b331011499
2 changed files with 51 additions and 5 deletions
|
@ -2464,7 +2464,15 @@ class DomainAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
|||
generic_org_type.admin_order_field = "domain_info__generic_org_type" # type: ignore
|
||||
|
||||
def federal_agency(self, obj):
|
||||
return obj.domain_info.federal_agency if obj.domain_info else None
|
||||
# Print the state of obj and obj.domain_info for troubleshooting
|
||||
print(f"federal_agency method called for: {obj}")
|
||||
if obj.domain_info:
|
||||
print(f"Domain info exists: {obj.domain_info}")
|
||||
print(f"Federal agency value: {obj.domain_info.federal_agency}")
|
||||
return obj.domain_info.federal_agency
|
||||
else:
|
||||
print("Domain info does not exist")
|
||||
return None
|
||||
|
||||
federal_agency.admin_order_field = "domain_info__federal_agency" # type: ignore
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue