Fix typos and PEP8 warnings
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user