Skip to content
Snippets Groups Projects

GREG-17: Duplicate check

Merged Tore.Brede requested to merge GREG-17_duplicate_check into master
All threads resolved!
2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -38,7 +38,7 @@ class PersonIdentitySerializer(serializers.ModelSerializer):
model = PersonIdentity
fields = "__all__"
def identity_duplicate_exists(self, identity_type: str, value: str) -> bool:
def is_duplicate(self, identity_type: str, value: str) -> bool:
# If the type is other then it is allowed that two entries are the same, since
# the text may be some generic text added by the sponsor
if identity_type == PersonIdentity.IdentityType.OTHER:
Loading