Code cleanups
PEP8 cleanups. Add keyword arguments. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.11 on 2018-04-02 03:39
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
@@ -14,11 +12,16 @@ class Migration(migrations.Migration):
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='smartlink',
|
||||
options={'ordering': ('label',), 'verbose_name': 'Smart link', 'verbose_name_plural': 'Smart links'},
|
||||
options={
|
||||
'ordering': ('label',), 'verbose_name': 'Smart link',
|
||||
'verbose_name_plural': 'Smart links'
|
||||
},
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='smartlink',
|
||||
name='label',
|
||||
field=models.CharField(db_index=True, max_length=96, verbose_name='Label'),
|
||||
field=models.CharField(
|
||||
db_index=True, max_length=96, verbose_name='Label'
|
||||
),
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.11 on 2018-08-23 23:53
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
@@ -15,11 +13,23 @@ class Migration(migrations.Migration):
|
||||
migrations.AlterField(
|
||||
model_name='smartlink',
|
||||
name='dynamic_label',
|
||||
field=models.CharField(blank=True, help_text="Enter a template to render. Use Django's default templating language (https://docs.djangoproject.com/en/1.11/ref/templates/builtins/). The {{ document }} context variable is available.", max_length=96, verbose_name='Dynamic label'),
|
||||
field=models.CharField(
|
||||
blank=True, help_text="Enter a template to render. Use "
|
||||
"Django's default templating language "
|
||||
"(https://docs.djangoproject.com/en/1.11/ref/templates/builtins/). "
|
||||
"The {{ document }} context variable is available.",
|
||||
max_length=96, verbose_name='Dynamic label'
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='smartlinkcondition',
|
||||
name='expression',
|
||||
field=models.TextField(help_text="Enter a template to render. Use Django's default templating language (https://docs.djangoproject.com/en/1.11/ref/templates/builtins/). The {{ document }} context variable is available.", verbose_name='Expression'),
|
||||
field=models.TextField(
|
||||
help_text="Enter a template to render. Use Django's default "
|
||||
"templating language "
|
||||
"(https://docs.djangoproject.com/en/1.11/ref/templates/builtins/). "
|
||||
"The {{ document }} context variable is available.",
|
||||
verbose_name='Expression'
|
||||
),
|
||||
),
|
||||
]
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.20 on 2019-04-29 19:22
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
@@ -15,6 +13,9 @@ class Migration(migrations.Migration):
|
||||
migrations.AlterField(
|
||||
model_name='smartlink',
|
||||
name='document_types',
|
||||
field=models.ManyToManyField(related_name='smart_links', to='documents.DocumentType', verbose_name='Document types'),
|
||||
field=models.ManyToManyField(
|
||||
related_name='smart_links', to='documents.DocumentType',
|
||||
verbose_name='Document types'
|
||||
),
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user