Fix typos and PEP8 warnings

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-07-07 01:12:25 -04:00
parent 7913b5ddcc
commit 0e972eff06
7 changed files with 6 additions and 11 deletions

View File

@@ -27,9 +27,7 @@ from .links import (
)
from .literals import MESSAGE_SQLITE_WARNING
from .menus import (
menu_about, menu_main, menu_secondary, menu_topbar, menu_user
)
from .menus import menu_about, menu_secondary, menu_topbar, menu_user
from .settings import (
setting_auto_logging, setting_production_error_log_path,
setting_production_error_logging

View File

@@ -1,9 +1,7 @@
from __future__ import unicode_literals
from django import forms
from django.template.loader import render_to_string
from django.urls import reverse
from django.utils.html import format_html_join, mark_safe
from django.utils.html import format_html_join
def widget_transition_events(transition):

View File

@@ -24,4 +24,3 @@ TEST_WORKFLOW_TRANSITION_LABEL_EDITED = 'test transition label edited'
TEST_INDEX_TEMPLATE_METADATA_EXPRESSION = '{{{{ document.workflow.{}.get_current_state }}}}'.format(
TEST_WORKFLOW_INTERNAL_NAME
)

View File

@@ -742,6 +742,7 @@ class SetupWorkflowTransitionFieldCreateView(ExternalObjectMixin, SingleObjectCr
'name', 'label', 'field_type', 'help_text', 'required', 'widget',
'widget_kwargs'
)
def get_extra_context(self):
return {
'navigation_object_list': ('transition', 'workflow'),

View File

@@ -6,7 +6,7 @@ from django.utils.translation import ugettext_lazy as _
from mayan.apps.common.apps import MayanAppConfig
from mayan.apps.common.html_widgets import TwoStateWidget
from mayan.apps.common.menus import (
menu_main, menu_object, menu_secondary, menu_tools, menu_topbar, menu_user
menu_object, menu_secondary, menu_tools, menu_topbar, menu_user
)
from mayan.apps.navigation.classes import SourceColumn

View File

@@ -11,7 +11,7 @@ from mayan.apps.common.settings import setting_paginate_by
from mayan.apps.common.tests import BaseTestCase
from mayan.apps.storage.utils import fs_cleanup
from ..classes import Namespace, Setting
from ..classes import Setting
from .literals import ENVIRONMENT_TEST_NAME, ENVIRONMENT_TEST_VALUE
from .mixins import SmartSettingTestMixin
@@ -52,4 +52,3 @@ class ClassesTestCase(SmartSettingTestMixin, BaseTestCase):
self.assertFalse(Setting.check_changed())
test_setting.value = 'test value edited'
self.assertTrue(Setting.check_changed())

View File

@@ -61,7 +61,7 @@ class Tag(models.Model):
def get_document_count(self, user):
"""
Return the numeric count of documents that have this tag attached.
The count if filtered by access.
The count is filtered by access.
"""
queryset = AccessControlList.objects.restrict_queryset(
permission=permission_document_view, queryset=self.documents,