PR Changes

This commit is contained in:
zandercymatics 2023-10-02 11:38:41 -06:00
parent a84bbb5d3a
commit 1990f91e6a
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
5 changed files with 185 additions and 131 deletions

View file

@ -149,6 +149,10 @@ class PublicContact(TimeStampedModel):
pw="thisisnotapassword",
)
@classmethod
def get_max_id_length(cls):
return cls._meta.get_field("registry_id").max_length
def __str__(self):
return (
f"{self.name} <{self.email}>"