Skip to content
Snippets Groups Projects
Commit 497b7b76 authored by Jonas Braathen's avatar Jonas Braathen
Browse files

Remove stray lines

parent e843af9b
No related branches found
No related tags found
1 merge request!173Consents
......@@ -288,8 +288,7 @@ class InvitedGuestView(GenericAPIView):
@staticmethod
def _illegal_fields(request_data, changeable_fields) -> List[str]:
# Check how many of the allowed fields are filled in
person_data = request_data["person"]
person_data = request_data.get("person", {})
changed_fields = person_data.keys()
return list(set(changed_fields) - set(changeable_fields))
......
......@@ -433,7 +433,6 @@ def test_invalid_date_of_birth_rejected(client, invited_person_verified_nin):
person = Person.objects.get()
assert person.date_of_birth is None
response = client.post(url, data, format="json")
@pytest.mark.django_db
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment