This commit is contained in:
zandercymatics 2024-05-03 12:12:17 -06:00
parent 92746e6061
commit 8f60631210
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 4 additions and 3 deletions

View file

@ -21,9 +21,10 @@ class PublicContact(TimeStampedModel):
class Meta:
"""Contains meta info about this class"""
# Creates a composite primary key with these fields.
# We can share the same registry id, but only if the contact type is
# different or if the domain is different.
# different or if the domain is different.
# For instance - we don't desire to have two admin contacts with the same id
# on the same domain.
unique_together = [("contact_type", "registry_id", "domain")]