Skip to content

Commit d1fc369

Browse files
committed
Make explicit comparison
1 parent 5b1e7cf commit d1fc369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/api/v3/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def get_serializer_class(self):
142142
# ProjectViewSet that returns the superproject of a project.
143143
return ProjectSerializer
144144

145-
if self.action in ('create',):
145+
if self.action == 'create':
146146
return ProjectCreateSerializer
147147

148148
def get_queryset(self):

0 commit comments

Comments
 (0)