mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 09:21:54 +02:00
This is not java!
This commit is contained in:
parent
4fea8555f0
commit
dc73d81b45
1 changed files with 1 additions and 2 deletions
|
@ -538,9 +538,8 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
# if already exists just update
|
||||
elif alreadyExistsInRegistry:
|
||||
old_contact = PublicContact.objects.filter(registry_id=contact.registry_id, contact_type=contact.contact_type).exclude(domain=self)
|
||||
if(old_contact.count > 0){
|
||||
if(old_contact.count > 0):
|
||||
old_contact.delete()
|
||||
}
|
||||
current_contact = PublicContact.objects.filter(
|
||||
registry_id=contact.registry_id
|
||||
).get()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue