Skip to content
Snippets Groups Projects
Commit 9d26484d authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[plotters][migration] Cleanup to properly use unicode_literals

parent fe909090
No related branches found
No related tags found
2 merge requests!2551.4.x,!242Py3 compatibility
...@@ -55,16 +55,16 @@ class Migration(migrations.Migration): ...@@ -55,16 +55,16 @@ class Migration(migrations.Migration):
name='Plotter', name='Plotter',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('sharing', models.CharField(default=b'P', max_length=1, choices=[(b'P', b'Private'), (b'S', b'Shared'), (b'A', b'Public'), (b'U', b'Usable')])), ('sharing', models.CharField(default='P', max_length=1, choices=[('P', 'Private'), ('S', 'Shared'), ('A', 'Public'), ('U', 'Usable')])),
('name', models.CharField(help_text=b'The name for this object (space-like characters will be automatically replaced by dashes)', max_length=200)), ('name', models.CharField(help_text='The name for this object (space-like characters will be automatically replaced by dashes)', max_length=200)),
('version', models.PositiveIntegerField(default=1, help_text=b'The version of this object (an integer starting from 1)')), ('version', models.PositiveIntegerField(default=1, help_text='The version of this object (an integer starting from 1)')),
('short_description', models.CharField(default=b'', help_text=b'Describe the object succinctly (try to keep it under 80 characters)', max_length=100, blank=True)), ('short_description', models.CharField(default='', help_text='Describe the object succinctly (try to keep it under 80 characters)', max_length=100, blank=True)),
('creation_date', models.DateTimeField(auto_now_add=True, verbose_name=b'Creation date')), ('creation_date', models.DateTimeField(auto_now_add=True, verbose_name='Creation date')),
('hash', models.CharField(help_text=b'Hashed value of the object contents (<a href="https://docs.python.org/2/library/hashlib.html">SHA256, hexadecimal digest</a>). This field is auto-generated and managed by the platform.', max_length=64, editable=False)), ('hash', models.CharField(help_text='Hashed value of the object contents (<a href="https://docs.python.org/2/library/hashlib.html">SHA256, hexadecimal digest</a>). This field is auto-generated and managed by the platform.', max_length=64, editable=False)),
('language', models.CharField(default=b'P', max_length=1, choices=[(b'U', b'Unknown'), (b'B', b'Binary'), (b'M', b'Matlab'), (b'P', b'Python'), (b'R', b'R')])), ('language', models.CharField(default='P', max_length=1, choices=[('U', 'Unknown'), ('', 'Binary'), ('M', 'Matla'), ('P', 'Python'), ('R', 'R')])),
('declaration_file', models.FileField(db_column=b'declaration', upload_to=beat.web.common.models.get_contribution_declaration_filename, storage=beat.web.plotters.models.PlotterStorage(), max_length=200, blank=True, null=True)), ('declaration_file', models.FileField(db_column='declaration', upload_to=beat.web.common.models.get_contribution_declaration_filename, storage=beat.web.plotters.models.PlotterStorage(), max_length=200, blank=True, null=True)),
('description_file', models.FileField(db_column=b'description', upload_to=beat.web.common.models.get_contribution_description_filename, storage=beat.web.plotters.models.PlotterStorage(), max_length=200, blank=True, null=True)), ('description_file', models.FileField(db_column='description', upload_to=beat.web.common.models.get_contribution_description_filename, storage=beat.web.plotters.models.PlotterStorage(), max_length=200, blank=True, null=True)),
('source_code_file', models.FileField(db_column=b'source_code', upload_to=beat.web.code.models.get_contribution_source_code_filename, storage=beat.web.plotters.models.PlotterStorage(), max_length=200, blank=True, null=True)), ('source_code_file', models.FileField(db_column='source_code', upload_to=beat.web.code.models.get_contribution_source_code_filename, storage=beat.web.plotters.models.PlotterStorage(), max_length=200, blank=True, null=True)),
('author', models.ForeignKey(related_name='plotters', to=settings.AUTH_USER_MODEL)), ('author', models.ForeignKey(related_name='plotters', to=settings.AUTH_USER_MODEL)),
('dataformat', models.ForeignKey(related_name='plotters', to='dataformats.DataFormat', help_text='Applicable data format to use this code with', null=True)), ('dataformat', models.ForeignKey(related_name='plotters', to='dataformats.DataFormat', help_text='Applicable data format to use this code with', null=True)),
('fork_of', models.ForeignKey(related_name='forks', blank=True, to='plotters.Plotter', null=True)), ('fork_of', models.ForeignKey(related_name='forks', blank=True, to='plotters.Plotter', null=True)),
...@@ -84,14 +84,14 @@ class Migration(migrations.Migration): ...@@ -84,14 +84,14 @@ class Migration(migrations.Migration):
name='PlotterParameter', name='PlotterParameter',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('sharing', models.CharField(default=b'P', max_length=1, choices=[(b'P', b'Private'), (b'S', b'Shared'), (b'A', b'Public'), (b'U', b'Usable')])), ('sharing', models.CharField(default='P', max_length=1, choices=[('P', 'Private'), ('S', 'Shared'), ('A', 'Public'), ('U', 'Usable')])),
('name', models.CharField(help_text=b'The name for this object (space-like characters will be automatically replaced by dashes)', max_length=200)), ('name', models.CharField(help_text='The name for this object (space-like characters will be automatically replaced by dashes)', max_length=200)),
('version', models.PositiveIntegerField(default=1, help_text=b'The version of this object (an integer starting from 1)')), ('version', models.PositiveIntegerField(default=1, help_text='The version of this object (an integer starting from 1)')),
('short_description', models.CharField(default=b'', help_text=b'Describe the object succinctly (try to keep it under 80 characters)', max_length=100, blank=True)), ('short_description', models.CharField(default='', help_text='Describe the object succinctly (try to keep it under 80 characters)', max_length=100, blank=True)),
('creation_date', models.DateTimeField(auto_now_add=True, verbose_name=b'Creation date')), ('creation_date', models.DateTimeField(auto_now_add=True, verbose_name='Creation date')),
('hash', models.CharField(help_text=b'Hashed value of the object contents (<a href="https://docs.python.org/2/library/hashlib.html">SHA256, hexadecimal digest</a>). This field is auto-generated and managed by the platform.', max_length=64, editable=False)), ('hash', models.CharField(help_text='Hashed value of the object contents (<a href="https://docs.python.org/2/library/hashlib.html">SHA256, hexadecimal digest</a>). This field is auto-generated and managed by the platform.', max_length=64, editable=False)),
('data', models.TextField(default=b'', blank=True)), ('data', models.TextField(default='', blank=True)),
('description', models.TextField(default=b'', help_text=b'Describe the object thoroughly using <a href="http://docutils.sourceforge.net/rst.html">reStructuredText mark-up</a><br/><i class="fa fa-thumbs-up"></i> The ruler at 80 columns indicate suggested <a href="https://en.wikipedia.org/wiki/POSIX">POSIX line breaks</a> (for readability).<br/><i class="fa fa-thumbs-up"></i> The editor will automatically enlarge to accomodate the entirety of your input<br/><i class="fa fa-thumbs-up"></i> Use <a href="http://codemirror.net/doc/manual.html#commands">keyboard shortcuts</a> for search/replace and faster editing. For example, use Ctrl-F (PC) or Cmd-F (Mac) to search through this box', null=True, blank=True)), ('description', models.TextField(default='', help_text='Describe the object thoroughly using <a href="http://docutils.sourceforge.net/rst.html">reStructuredText mark-up</a><br/><i class="fa fa-thumbs-up"></i> The ruler at 80 columns indicate suggested <a href="https://en.wikipedia.org/wiki/POSIX">POSIX line breaks</a> (for readability).<br/><i class="fa fa-thumbs-up"></i> The editor will automatically enlarge to accomodate the entirety of your input<br/><i class="fa fa-thumbs-up"></i> Use <a href="http://codemirror.net/doc/manual.html#commands">keyboard shortcuts</a> for search/replace and faster editing. For example, use Ctrl-F (PC) or Cmd-F (Mac) to search through this box', null=True, blank=True)),
('author', models.ForeignKey(related_name='plotterparameters', to=settings.AUTH_USER_MODEL)), ('author', models.ForeignKey(related_name='plotterparameters', to=settings.AUTH_USER_MODEL)),
('fork_of', models.ForeignKey(related_name='forks', blank=True, to='plotters.PlotterParameter', null=True)), ('fork_of', models.ForeignKey(related_name='forks', blank=True, to='plotters.PlotterParameter', null=True)),
('plotter', models.ForeignKey(related_name='plotting_parameters', to='plotters.Plotter', null=True)), ('plotter', models.ForeignKey(related_name='plotting_parameters', to='plotters.Plotter', null=True)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment