Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
concrexit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
70
Issues
70
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
thalia
concrexit
Commits
df39feca
Verified
Commit
df39feca
authored
Oct 11, 2017
by
Sébastiaan Versteeg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix info fields in events API registrations
parent
0752efab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
website/events/api/serializers.py
website/events/api/serializers.py
+2
-1
No files found.
website/events/api/serializers.py
View file @
df39feca
...
...
@@ -247,7 +247,7 @@ class RegistrationSerializer(serializers.ModelSerializer):
model
=
Registration
fields
=
(
'pk'
,
'member'
,
'name'
,
'photo'
,
'registered_on'
,
'is_late_cancellation'
,
'is_cancelled'
,
'queue_position'
)
'queue_position'
,
'fields'
)
name
=
serializers
.
SerializerMethodField
(
'_name'
)
photo
=
serializers
.
SerializerMethodField
(
'_photo'
)
...
...
@@ -258,6 +258,7 @@ class RegistrationSerializer(serializers.ModelSerializer):
'_is_late_cancellation'
)
queue_position
=
serializers
.
SerializerMethodField
(
'_queue_position'
,
read_only
=
False
)
fields
=
serializers
.
HiddenField
(
default
=
''
)
def
_is_late_cancellation
(
self
,
instance
):
val
=
instance
.
is_late_cancellation
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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