Skip to content

Commit 24d5bf3

Browse files
authored
Merge pull request #164 from eduNEXT/mjh/fix-EdxappExtendedUserSerializer
fix: EdxappExtendedUserSerializer to include all "EDNX_CUSTOM_REGISTRATION_FIELDS"
2 parents bedc5d2 + 81506fd commit 24d5bf3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ Change Log
1212
Unreleased
1313
----------
1414

15+
[4.13.2] - 2021-07-16
16+
---------------------
17+
18+
Changed
19+
~~~~~~~
20+
* EdxappExtendedUserSerializer to include all the custom registration fields.
21+
1522
[4.13.1] - 2021-07-15
1623
---------------------
1724

eox_core/api/v1/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def __init__(self, *args, **kwargs): # pylint: disable=too-many-locals
152152
field_name = custom_field.get("name")
153153
field_type = custom_field.get("type")
154154

155-
if field_name in extended_profile_fields and field_type in ALLOWED_TYPES:
155+
if field_type in ALLOWED_TYPES:
156156
serializer_field = {}
157157

158158
serializer_field["required"] = extra_fields.get(field_name) == "required"

0 commit comments

Comments
 (0)