Skip to content

Commit f153864

Browse files
committed
Make explicit comparison
1 parent d550922 commit f153864

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
@@ -145,7 +145,7 @@ def get_serializer_class(self):
145145
# ProjectViewSet that returns the superproject of a project.
146146
return ProjectSerializer
147147

148-
if self.action in ('create',):
148+
if self.action == 'create':
149149
return ProjectCreateSerializer
150150

151151
def get_queryset(self):

0 commit comments

Comments
 (0)