mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-31 15:06:32 +02:00
admin show/hide logic
This commit is contained in:
parent
178d12711a
commit
14bfeb7d9b
3 changed files with 102 additions and 1 deletions
|
@ -75,7 +75,6 @@ class RequestingEntityForm(RegistrarForm):
|
|||
def clean_sub_organization(self):
|
||||
sub_organization = self.cleaned_data.get("sub_organization")
|
||||
is_custom = self.cleaned_data.get("is_custom_suborganization")
|
||||
print(f"in clean: {sub_organization}")
|
||||
if is_custom:
|
||||
# If it's a custom suborganization, return None (equivalent to selecting nothing)
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue