Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
341ba6a8
Verified
Commit
341ba6a8
authored
Oct 09, 2017
by
Sébastiaan Versteeg
Browse files
Fix returning member pk instead of user pk
parent
101be591
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/api/serializers.py
View file @
341ba6a8
...
...
@@ -223,7 +223,7 @@ class RegistrationListSerializer(serializers.ModelSerializer):
def
_member
(
self
,
instance
):
if
instance
.
member
:
return
instance
.
member
.
pk
return
instance
.
member
.
user
.
pk
return
None
def
_name
(
self
,
instance
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment