+ {errors.representative && errors.representative.message}
+
diff --git a/authentication/serializers.py b/authentication/serializers.py
index c59d43235..eb07d3be1 100644
--- a/authentication/serializers.py
+++ b/authentication/serializers.py
@@ -58,10 +58,6 @@ def validate(self, value):
custom_errors["comp_status"].append(
"Please choose who you represent."
)
- elif is_registered and is_startup:
- custom_errors["comp_status"].append(
- "Please choose either registered or startup."
- )
try:
validate_password_long(password)
except ValidationError as error:
diff --git a/authentication/tests/test_user_registration.py b/authentication/tests/test_user_registration.py
index cfaf72bdc..9493baaed 100644
--- a/authentication/tests/test_user_registration.py
+++ b/authentication/tests/test_user_registration.py
@@ -154,8 +154,11 @@ def test_register_user_who_represent_both_chosen(self):
},
format="json",
)
- self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
+ self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(
- {"comp_status": ["Please choose either registered or startup."]},
+ {
+ "name": "Jane",
+ "surname": "Smith",
+ },
response.json(),
)