mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-03 17:53:31 +02:00
getting started
This commit is contained in:
parent
3499cc3ba0
commit
2a64230c91
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class RegistrarFormSet(forms.BaseFormSet):
|
|||
# when determining if related objects exist. threshold is 0 for most
|
||||
# relationships. if the relationship is related_name, we know that
|
||||
# there is already exactly 1 acceptable relationship (the one we are
|
||||
# attempting to delete), so the threshold is 1
|
||||
# attempting to delete), so the threshold is 1
|
||||
threshold = 1 if rel == related_name else 0
|
||||
|
||||
# Raise a KeyError if rel is not a defined field on the db_obj model
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue