From 21e1dc93842da0f821fc9b5a4953224a6f59397f Mon Sep 17 00:00:00 2001 From: Clemens Wolff Date: Thu, 12 Dec 2019 10:51:22 -0500 Subject: [PATCH] Fix codacy --- app/api/migrations/0002_speech2text.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/api/migrations/0002_speech2text.py b/app/api/migrations/0002_speech2text.py index 4fe2cee9..d13e9921 100644 --- a/app/api/migrations/0002_speech2text.py +++ b/app/api/migrations/0002_speech2text.py @@ -22,14 +22,17 @@ class Migration(migrations.Migration): ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('text', models.TextField()), - ('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='speech2text_annotations', to='api.Document')), + ('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, + related_name='speech2text_annotations', to='api.Document')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Speech2textProject', fields=[ - ('project_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.Project')), + ('project_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, + parent_link=True, primary_key=True, serialize=False, + to='api.Project')), ], options={ 'abstract': False, @@ -40,7 +43,10 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='project', name='project_type', - field=models.CharField(choices=[('DocumentClassification', 'document classification'), ('SequenceLabeling', 'sequence labeling'), ('Seq2seq', 'sequence to sequence'), ('Speech2text', 'speech to text')], max_length=30), + field=models.CharField(choices=[('DocumentClassification', 'document classification'), + ('SequenceLabeling', 'sequence labeling'), + ('Seq2seq', 'sequence to sequence'), + ('Speech2text', 'speech to text')], max_length=30), ), migrations.AlterUniqueTogether( name='speech2textannotation',