PEP8 cleanups.

This commit is contained in:
Roberto Rosario
2015-07-27 23:53:03 -04:00
parent 0b923a7a1c
commit 1e746c700a
101 changed files with 3244 additions and 892 deletions

View File

@@ -162,9 +162,9 @@ class APIDocumentVersionCreateView(generics.CreateAPIView):
)
if serializer.is_valid():
# Nested resource we take the document pk from the URL and insert it
# so that it needs not to be specified by the user, we mark it as
# a read only field in the serializer
# Nested resource we take the document pk from the URL and insert
# it so that it needs not to be specified by the user, we mark
# it as a read only field in the serializer
document = get_object_or_404(Document, pk=kwargs['pk'])
document.new_version(
@@ -361,7 +361,8 @@ class APIDocumentTypeDocumentListView(generics.ListAPIView):
)
except PermissionDenied:
AccessControlList.objects.check_access(
permission_document_type_view, self.request.user, document_type
permission_document_type_view, self.request.user,
document_type
)
return document_type.documents.all()