Commit d9519db7 authored by alexandre's avatar alexandre

Small stylistic adjustements

parent f5011573
......@@ -37,7 +37,7 @@ class ScoreViewSet(viewsets.ModelViewSet):
"""
Expose a lighter set of fields when a list is required
"""
if self.action == 'list':
if self.action in ['list']:
return ScoreLightSerializer
else:
return ScoreSerializer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment