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