PEP8 Cleanusp (549 warnings).
This commit is contained in:
@@ -20,4 +20,3 @@ PAGE_RANGE_RANGE = 'range'
|
||||
PAGE_RANGE_CHOICES = (
|
||||
(PAGE_RANGE_ALL, _('All pages')), (PAGE_RANGE_RANGE, _('Page range'))
|
||||
)
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ class Document(models.Model):
|
||||
in_trash = models.BooleanField(
|
||||
default=False, editable=False, verbose_name=_('In trash?')
|
||||
)
|
||||
#TODO: set editable to False
|
||||
# TODO: set editable to False
|
||||
deleted_date_time = models.DateTimeField(
|
||||
blank=True, editable=True, null=True,
|
||||
verbose_name=_('Date and time trashed')
|
||||
|
||||
@@ -4,12 +4,7 @@ import datetime
|
||||
|
||||
import qsstats
|
||||
|
||||
from django.db.models import Avg, Count, Max, Min
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from statistics.classes import Statistic
|
||||
|
||||
from .models import Document, DocumentType, DocumentPage, DocumentVersion
|
||||
from .models import Document, DocumentPage, DocumentVersion
|
||||
|
||||
|
||||
def new_documents_per_month():
|
||||
@@ -50,6 +45,7 @@ def new_document_pages_per_month():
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def total_document_per_month():
|
||||
qss = qsstats.QuerySetStats(Document.objects.all(), 'date_added')
|
||||
this_year = datetime.date.today().year
|
||||
|
||||
@@ -17,7 +17,7 @@ from .views import (
|
||||
DeletedDocumentListView, DocumentEditView, DocumentListView,
|
||||
DocumentPageView, DocumentPageListView, DocumentPreviewView,
|
||||
DocumentRestoreView, DocumentRestoreManyView, DocumentTrashView,
|
||||
DocumentTrashManyView, DocumentTypeCreateView, DocumentTypeDeleteView,
|
||||
DocumentTrashManyView, DocumentTypeCreateView, DocumentTypeDeleteView,
|
||||
DocumentTypeDocumentListView, DocumentTypeFilenameDeleteView,
|
||||
DocumentTypeFilenameEditView, DocumentTypeFilenameListView,
|
||||
DocumentTypeListView, DocumentTypeEditView, DocumentVersionListView,
|
||||
|
||||
@@ -31,9 +31,7 @@ from converter.permissions import permission_transformation_delete
|
||||
from filetransfers.api import serve_file
|
||||
from permissions import Permission
|
||||
|
||||
from .events import (
|
||||
event_document_properties_edit, event_document_type_change
|
||||
)
|
||||
from .events import event_document_type_change
|
||||
from .forms import (
|
||||
DocumentDownloadForm, DocumentForm, DocumentPageForm, DocumentPreviewForm,
|
||||
DocumentPropertiesForm, DocumentTypeSelectForm,
|
||||
|
||||
Reference in New Issue
Block a user