From 7f4ff17497dd564c523bc1d14ad40079a19a0fd8 Mon Sep 17 00:00:00 2001 From: Dana Date: Wed, 9 Nov 2022 22:14:32 -0500 Subject: [PATCH] fixes styling --- .../project/migrations/0064_datauseagreement.py | 5 +++-- physionet-django/project/modelcomponents/submission.py | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/physionet-django/project/migrations/0064_datauseagreement.py b/physionet-django/project/migrations/0064_datauseagreement.py index 85e019e1e5..905b5819c9 100644 --- a/physionet-django/project/migrations/0064_datauseagreement.py +++ b/physionet-django/project/migrations/0064_datauseagreement.py @@ -16,11 +16,12 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('has_copy_right_permission', models.PositiveSmallIntegerField( - choices=[(0, 'No'), (1, 'Yes'),(2, 'NA')])), + choices=[(0, 'No'), (1, 'Yes'), (2, 'NA')])), ('has_human_subject_data', models.PositiveSmallIntegerField( choices=[(0, 'No'), (1, 'Yes'), (2, 'NA')])), ('has_phi', models.PositiveSmallIntegerField(choices=[(0, 'No'), (1, 'Yes'), (2, 'NA')])), - ('project', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='project.activeproject')), + ('project', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, + to='project.activeproject')), ], ), ] diff --git a/physionet-django/project/modelcomponents/submission.py b/physionet-django/project/modelcomponents/submission.py index df8fd7f138..c6c8b71d89 100644 --- a/physionet-django/project/modelcomponents/submission.py +++ b/physionet-django/project/modelcomponents/submission.py @@ -266,6 +266,6 @@ class DataUseAgreement(models.Model): ) project = models.OneToOneField('project.ActiveProject', on_delete=models.CASCADE) - has_copy_right_permission = models.PositiveSmallIntegerField(choices = RESPONSE_CHOICES) - has_human_subject_data = models.PositiveSmallIntegerField(choices = RESPONSE_CHOICES) - has_phi = models.PositiveSmallIntegerField(choices = RESPONSE_CHOICES) + has_copy_right_permission = models.PositiveSmallIntegerField(choices=RESPONSE_CHOICES) + has_human_subject_data = models.PositiveSmallIntegerField(choices=RESPONSE_CHOICES) + has_phi = models.PositiveSmallIntegerField(choices=RESPONSE_CHOICES)