@@ -65,7 +65,6 @@ class ProjectsViewSet(APIv3Settings, ProjectQuerySetMixin, NestedViewSetMixin,
65
65
FlexFieldsMixin , ReadOnlyModelViewSet ):
66
66
67
67
# Markdown docstring is automatically rendered by BrowsableAPIRenderer.
68
-
69
68
"""
70
69
Endpoints related to ``Project`` objects.
71
70
@@ -163,9 +162,7 @@ def get_view_description(self, *args, **kwargs): # pylint: disable=arguments-di
163
162
164
163
@action (detail = True , methods = ['get' ])
165
164
def superproject (self , request , project_slug ):
166
- """
167
- Return the superproject of a ``Project``.
168
- """
165
+ """Return the superproject of a ``Project``."""
169
166
project = self .get_object ()
170
167
try :
171
168
superproject = project .superprojects .first ().parent
@@ -180,11 +177,11 @@ class SubprojectRelationshipViewSet(APIv3Settings, ProjectQuerySetMixin,
180
177
ListModelMixin , GenericViewSet ):
181
178
182
179
# Markdown docstring exposed at BrowsableAPIRenderer.
183
- """
184
- List subprojects of a ``Project``.
185
- """
180
+
181
+ """List subprojects of a ``Project``."""
186
182
187
183
# Private/Internal docstring
184
+
188
185
"""
189
186
The main query is done via the ``NestedViewSetMixin`` using the
190
187
``parents_query_lookups`` defined when registering the urls.
@@ -202,15 +199,13 @@ class TranslationRelationshipViewSet(APIv3Settings, ProjectQuerySetMixin,
202
199
ListModelMixin , GenericViewSet ):
203
200
204
201
# Markdown docstring exposed at BrowsableAPIRenderer.
205
- """
206
- List translations of a ``Project``.
207
- """
202
+ """List translations of a ``Project``."""
208
203
209
204
# Private/Internal docstring
210
205
"""
211
206
The main query is done via the ``NestedViewSetMixin`` using the
212
207
``parents_query_lookups`` defined when registering the urls.
213
- """
208
+ """ # noqa
214
209
215
210
model = Project
216
211
lookup_field = 'slug'
0 commit comments