diff --git a/gregui/api/serializers/guest.py b/gregui/api/serializers/guest.py index 33607815dcd10980b0f41fcba35337bf7cbcf237..c6ceab32c5fb80b8101ec92eac17ae87457785fb 100644 --- a/gregui/api/serializers/guest.py +++ b/gregui/api/serializers/guest.py @@ -6,11 +6,6 @@ from rest_framework import serializers from rest_framework.exceptions import ValidationError from rest_framework.fields import BooleanField, CharField, SerializerMethodField -<<<<<<< HEAD -from greg.models import Consent, ConsentChoice, ConsentType, Identity, Person -from greg.utils import is_identity_duplicate -from gregui.api.serializers.IdentityDuplicateError import IdentityDuplicateError -======= from greg.models import ( Consent, @@ -20,9 +15,10 @@ from greg.models import ( Person, InvitationLink, ) +from greg.utils import is_identity_duplicate +from gregui.api.serializers.IdentityDuplicateError import IdentityDuplicateError from gregui.api.serializers.identity import PartialIdentitySerializer from gregui.api.serializers.role import ExtendedRoleSerializer ->>>>>>> 5be5116 (Add an invitation status field to the guest serializer for use in the UI.) from gregui.validation import ( validate_phone_number, validate_norwegian_national_id_number, diff --git a/gregui/tests/api/serializers/test_guest.py b/gregui/tests/api/serializers/test_guest.py index 82176be4321fc6f21bdf5c99c0f81da3008bb846..456f7034749421b12efc07b4fc660d9621f0b5d7 100644 --- a/gregui/tests/api/serializers/test_guest.py +++ b/gregui/tests/api/serializers/test_guest.py @@ -17,7 +17,7 @@ def test_serialize_guest(invited_person): "first": "Foo", "fnr": None, "invitation_status": "active", - "last": "Bar", + "last": "BaÙ…r", "mobile": None, "passport": None, "pid": "1",