PEP8 cleanups.

This commit is contained in:
Roberto Rosario
2015-08-19 14:50:44 -04:00
parent 683e54fea1
commit 68f3c6eee7
49 changed files with 1078 additions and 216 deletions
-9
View File
@@ -103,15 +103,6 @@ class PrintForm(forms.Form):
page_range = forms.CharField(label=_('Page range'), required=False)
class DocumentTypeFilenameForm(forms.ModelForm):
"""
Model class form to edit a document type filename
"""
class Meta:
fields = ('filename', 'enabled')
model = DocumentTypeFilename
class DocumentTypeFilenameForm_create(forms.ModelForm):
"""
Model class form to create a new document type filename
+1 -1
View File
@@ -1 +1 @@
from .literals import *
from .literals import * # NOQA
@@ -1,6 +1,5 @@
from __future__ import unicode_literals
from django.conf import settings
from django.core.files import File
from django.test import TestCase
+3 -4
View File
@@ -21,8 +21,7 @@ from common.generics import (
SingleObjectEditView, SingleObjectListView
)
from common.mixins import MultipleInstanceActionMixin
from common.utils import encapsulate, pretty_size
from common.widgets import two_state_template
from common.utils import pretty_size
from converter.literals import (
DEFAULT_PAGE_NUMBER, DEFAULT_ROTATION, DEFAULT_ZOOM_LEVEL
)
@@ -36,8 +35,8 @@ from .events import (
)
from .forms import (
DocumentDownloadForm, DocumentForm, DocumentPageForm, DocumentPreviewForm,
DocumentPropertiesForm, DocumentTypeFilenameForm,
DocumentTypeFilenameForm_create, DocumentTypeSelectForm, PrintForm
DocumentPropertiesForm, DocumentTypeSelectForm,
DocumentTypeFilenameForm_create, PrintForm
)
from .literals import DOCUMENT_IMAGE_TASK_TIMEOUT
from .models import (