mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-12 20:49:41 +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
|
# if already exists just update
|
||||||
elif alreadyExistsInRegistry:
|
elif alreadyExistsInRegistry:
|
||||||
old_contact = PublicContact.objects.filter(registry_id=contact.registry_id, contact_type=contact.contact_type).exclude(domain=self)
|
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()
|
old_contact.delete()
|
||||||
}
|
|
||||||
current_contact = PublicContact.objects.filter(
|
current_contact = PublicContact.objects.filter(
|
||||||
registry_id=contact.registry_id
|
registry_id=contact.registry_id
|
||||||
).get()
|
).get()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue