PEP8 Cleanusp (549 warnings).

This commit is contained in:
Roberto Rosario
2015-09-16 04:15:10 -04:00
parent 6a10c6e19b
commit 6ca6cd9f21
27 changed files with 367 additions and 204 deletions
-1
View File
@@ -20,4 +20,3 @@ PAGE_RANGE_RANGE = 'range'
PAGE_RANGE_CHOICES = (
(PAGE_RANGE_ALL, _('All pages')), (PAGE_RANGE_RANGE, _('Page range'))
)
+1 -1
View File
@@ -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')
+2 -6
View File
@@ -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
+1 -1
View File
@@ -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,
+1 -3
View File
@@ -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,