Skip to content

Commit d550922

Browse files
committed
Add note about superproject "action"
1 parent 9a19a0e commit d550922

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readthedocs/api/v3/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ def get_serializer_class(self):
141141
it return a serializer to validate just a few fields.
142142
"""
143143
if self.action in ('list', 'retrieve', 'superproject'):
144+
# NOTE: ``superproject`` is the @action defined in the
145+
# ProjectViewSet that returns the superproject of a project.
144146
return ProjectSerializer
145147

146148
if self.action in ('create',):

0 commit comments

Comments
 (0)