admin show/hide logic

This commit is contained in:
zandercymatics 2024-10-24 11:58:36 -06:00
parent 178d12711a
commit 14bfeb7d9b
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 102 additions and 1 deletions

View file

@ -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