Update Django template reference URL from Django 1.7 to Django 1.11. Add migratons to update model definitions.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-08-23 19:55:30 -04:00
parent 9273eccbd6
commit c6d3ffa28b
8 changed files with 115 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
# -*- 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
class Migration(migrations.Migration):
dependencies = [
('converter', '0012_auto_20170714_2133'),
]
operations = [
migrations.AlterField(
model_name='transformation',
name='name',
field=models.CharField(choices=[('crop', 'Crop: left, top, right, bottom'), ('flip', 'Flip'), ('gaussianblur', 'Gaussian blur: radius'), ('lineart', 'Line art'), ('mirror', 'Mirror'), ('resize', 'Resize: width, height'), ('rotate', 'Rotate: degrees, fillcolor'), ('rotate180', 'Rotate 180 degrees'), ('rotate270', 'Rotate 270 degrees'), ('rotate90', 'Rotate 90 degrees'), ('unsharpmask', 'Unsharp masking: radius, percent, threshold'), ('zoom', 'Zoom: percent')], max_length=128, verbose_name='Name'),
),
]

View File

@@ -0,0 +1,20 @@
# -*- 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
class Migration(migrations.Migration):
dependencies = [
('document_indexing', '0013_auto_20170714_2133'),
]
operations = [
migrations.AlterField(
model_name='indextemplatenode',
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/)", verbose_name='Indexing expression'),
),
]

View File

@@ -159,7 +159,7 @@ class IndexTemplateNode(MPTTModel):
help_text=_( help_text=_(
'Enter a template to render. ' 'Enter a template to render. '
'Use Django\'s default templating language ' 'Use Django\'s default templating language '
'(https://docs.djangoproject.com/en/1.7/ref/templates/builtins/)' '(https://docs.djangoproject.com/en/1.11/ref/templates/builtins/)'
), ),
verbose_name=_('Indexing expression') verbose_name=_('Indexing expression')
) )

View File

@@ -0,0 +1,20 @@
# -*- 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
class Migration(migrations.Migration):
dependencies = [
('document_states', '0011_auto_20180315_0029'),
]
operations = [
migrations.AlterField(
model_name='workflowstateaction',
name='label',
field=models.CharField(help_text='A simple identifier for this action.', max_length=255, verbose_name='Label'),
),
]

View File

@@ -0,0 +1,25 @@
# -*- 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
class Migration(migrations.Migration):
dependencies = [
('linking', '0006_auto_20180402_0339'),
]
operations = [
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'),
),
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'),
),
]

View File

@@ -23,7 +23,7 @@ class SmartLink(models.Model):
blank=True, max_length=96, help_text=_( blank=True, max_length=96, help_text=_(
'Enter a template to render. ' 'Enter a template to render. '
'Use Django\'s default templating language ' 'Use Django\'s default templating language '
'(https://docs.djangoproject.com/en/1.7/ref/templates/builtins/). ' '(https://docs.djangoproject.com/en/1.11/ref/templates/builtins/). '
'The {{ document }} context variable is available.' 'The {{ document }} context variable is available.'
), verbose_name=_('Dynamic label') ), verbose_name=_('Dynamic label')
) )
@@ -122,7 +122,7 @@ class SmartLinkCondition(models.Model):
help_text=_( help_text=_(
'Enter a template to render. ' 'Enter a template to render. '
'Use Django\'s default templating language ' 'Use Django\'s default templating language '
'(https://docs.djangoproject.com/en/1.7/ref/templates/builtins/). ' '(https://docs.djangoproject.com/en/1.11/ref/templates/builtins/). '
'The {{ document }} context variable is available.' 'The {{ document }} context variable is available.'
), verbose_name=_('Expression') ), verbose_name=_('Expression')
) )

View File

@@ -0,0 +1,25 @@
# -*- 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
class Migration(migrations.Migration):
dependencies = [
('metadata', '0009_auto_20180402_0339'),
]
operations = [
migrations.AlterField(
model_name='metadatatype',
name='default',
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/)", max_length=128, null=True, verbose_name='Default'),
),
migrations.AlterField(
model_name='metadatatype',
name='lookup',
field=models.TextField(blank=True, help_text="Enter a template to render. Must result in a comma delimited string. Use Django's default templating language (https://docs.djangoproject.com/en/1.11/ref/templates/builtins/).", null=True, verbose_name='Lookup'),
),
]

View File

@@ -55,7 +55,7 @@ class MetadataType(models.Model):
help_text=_( help_text=_(
'Enter a template to render. ' 'Enter a template to render. '
'Use Django\'s default templating language ' 'Use Django\'s default templating language '
'(https://docs.djangoproject.com/en/1.7/ref/templates/builtins/)' '(https://docs.djangoproject.com/en/1.11/ref/templates/builtins/)'
), ),
verbose_name=_('Default') verbose_name=_('Default')
) )
@@ -65,7 +65,7 @@ class MetadataType(models.Model):
'Enter a template to render. ' 'Enter a template to render. '
'Must result in a comma delimited string. ' 'Must result in a comma delimited string. '
'Use Django\'s default templating language ' 'Use Django\'s default templating language '
'(https://docs.djangoproject.com/en/1.7/ref/templates/builtins/).' '(https://docs.djangoproject.com/en/1.11/ref/templates/builtins/).'
), ),
verbose_name=_('Lookup') verbose_name=_('Lookup')
) )