From 03a35310ca0f7af54b8e5619bbdde82429068462 Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Thu, 26 Apr 2018 15:23:36 +0200 Subject: [PATCH] [experiments][migrations] Cleanup to properly use unicode_literals --- beat/web/experiments/migrations/0001_initial.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/beat/web/experiments/migrations/0001_initial.py b/beat/web/experiments/migrations/0001_initial.py index f09aa4f16..0b164675d 100644 --- a/beat/web/experiments/migrations/0001_initial.py +++ b/beat/web/experiments/migrations/0001_initial.py @@ -50,7 +50,7 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('name', models.CharField(max_length=200)), - ('status', models.CharField(default=b'N', max_length=1, choices=[(b'N', b'Not cached'), (b'P', b'Processing'), (b'C', b'Cached'), (b'F', b'Failed')])), + ('status', models.CharField(default='N', max_length=1, choices=[('N', 'Not cached'), ('P', 'Processing'), ('C', 'Cached'), ('F', 'Failed')])), ('analyzer', models.BooleanField(default=False)), ('creation_date', models.DateTimeField(auto_now_add=True, null=True)), ('start_date', models.DateTimeField(null=True, blank=True)), @@ -86,15 +86,15 @@ class Migration(migrations.Migration): name='Experiment', fields=[ ('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(max_length=200)), - ('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)), - ('status', models.CharField(default=b'P', max_length=1, choices=[(b'P', b'Pending'), (b'S', b'Scheduled'), (b'R', b'Running'), (b'D', b'Done'), (b'F', b'Failed'), (b'C', b'Canceling')])), + ('short_description', models.CharField(default='', help_text='Describe the object succinctly (try to keep it under 80 characters)', max_length=100, blank=True)), + ('status', models.CharField(default='P', max_length=1, choices=[('P', 'Pending'), ('S', 'Scheduled'), ('R', 'Running'), ('D', 'Done'), ('F', 'Failed'), ('C', 'Canceling')])), ('creation_date', models.DateTimeField(auto_now_add=True, null=True)), ('start_date', models.DateTimeField(null=True, blank=True)), ('end_date', models.DateTimeField(null=True, blank=True)), - ('declaration_file', models.FileField(db_column=b'declaration', upload_to=beat.web.common.models.get_contribution_declaration_filename, storage=beat.web.experiments.models.DeclarationStorage(), max_length=300, 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.experiments.models.DeclarationStorage(), max_length=300, blank=True, null=True)), + ('declaration_file', models.FileField(db_column='declaration', upload_to=beat.web.common.models.get_contribution_declaration_filename, storage=beat.web.experiments.models.DeclarationStorage(), max_length=300, blank=True, null=True)), + ('description_file', models.FileField(db_column='description', upload_to=beat.web.common.models.get_contribution_description_filename, storage=beat.web.experiments.models.DeclarationStorage(), max_length=300, blank=True, null=True)), ('hash', models.CharField(max_length=64)), ('author', models.ForeignKey(related_name='experiments', to=settings.AUTH_USER_MODEL)), ('referenced_algorithms', models.ManyToManyField(related_name='experiments', to='algorithms.Algorithm', blank=True)), -- GitLab