Style: Minor PEP8 code cleanups
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -15,9 +15,10 @@ class Migration(migrations.Migration):
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
fields=[
|
||||
('id', models.AutoField(
|
||||
auto_created=True, primary_key=True, serialize=False,
|
||||
verbose_name='ID'
|
||||
(
|
||||
'id', models.AutoField(
|
||||
auto_created=True, primary_key=True, serialize=False,
|
||||
verbose_name='ID'
|
||||
)
|
||||
),
|
||||
], name='FavoriteDocument', options={
|
||||
@@ -29,7 +30,7 @@ class Migration(migrations.Migration):
|
||||
name='document', options={
|
||||
'ordering': ('label',), 'verbose_name': 'Document',
|
||||
'verbose_name_plural': 'Documents'
|
||||
},
|
||||
},
|
||||
),
|
||||
migrations.AlterField(
|
||||
field=models.ForeignKey(
|
||||
|
||||
@@ -15,7 +15,7 @@ class Migration(migrations.Migration):
|
||||
options={
|
||||
'ordering': ('label',), 'verbose_name': 'Smart link',
|
||||
'verbose_name_plural': 'Smart links'
|
||||
},
|
||||
},
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='smartlink',
|
||||
|
||||
@@ -64,9 +64,9 @@ class DocumentMetadataForm(forms.Form):
|
||||
)
|
||||
|
||||
if not required:
|
||||
first_choice=('', '------')
|
||||
first_choice = ('', '------')
|
||||
else:
|
||||
first_choice=None
|
||||
first_choice = None
|
||||
|
||||
self.fields['value'].choices = self.metadata_type.get_lookup_choices(
|
||||
first_choice=first_choice
|
||||
|
||||
@@ -6,7 +6,6 @@ from ..permissions import (
|
||||
permission_ocr_content_view, permission_ocr_document,
|
||||
permission_document_type_ocr_setup
|
||||
)
|
||||
from ..utils import get_document_ocr_content
|
||||
|
||||
TEST_DOCUMENT_CONTENT = 'Mayan EDMS Documentation'
|
||||
|
||||
|
||||
@@ -3,8 +3,7 @@ from __future__ import unicode_literals
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from mayan.apps.common import (
|
||||
MayanAppConfig, menu_facet, menu_list_facet, menu_setup,
|
||||
menu_object, menu_secondary
|
||||
MayanAppConfig, menu_setup, menu_object, menu_secondary
|
||||
)
|
||||
from mayan.apps.navigation import SourceColumn
|
||||
|
||||
|
||||
Reference in New Issue
Block a user