From d8143d6c27141e2df198e7cb6cd582383b6d2050 Mon Sep 17 00:00:00 2001 From: PJDeSmijter Date: Thu, 7 Mar 2024 21:53:54 +0100 Subject: [PATCH] fix lint --- ...missions_file_alter_submissions_output_test.py | 15 +++++++-------- backend/pigeonhole/apps/submissions/models.py | 9 ++++++--- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/backend/pigeonhole/apps/submissions/migrations/0004_alter_submissions_file_alter_submissions_output_test.py b/backend/pigeonhole/apps/submissions/migrations/0004_alter_submissions_file_alter_submissions_output_test.py index 9509c2c4..c2aa722a 100644 --- a/backend/pigeonhole/apps/submissions/migrations/0004_alter_submissions_file_alter_submissions_output_test.py +++ b/backend/pigeonhole/apps/submissions/migrations/0004_alter_submissions_file_alter_submissions_output_test.py @@ -4,9 +4,8 @@ class Migration(migrations.Migration): - dependencies = [ - ('submissions', + ('submissions', '0003_alter_submissions_file_alter_submissions_output_test'), ] @@ -18,16 +17,16 @@ class Migration(migrations.Migration): max_length=255, null=True, upload_to='uploads/submissions/files///'), + 'related.ForeignKey>//'), ), migrations.AlterField( model_name='submissions', name='output_test', field=models.FileField( - max_length=255, - null=True, - upload_to='uploads/submissions/outputs//' - '/output_test/'), + max_length=255, + null=True, + upload_to='uploads/submissions/outputs//' + '/output_test/'), ), ] diff --git a/backend/pigeonhole/apps/submissions/models.py b/backend/pigeonhole/apps/submissions/models.py index 4b5f83df..7025fb02 100644 --- a/backend/pigeonhole/apps/submissions/models.py +++ b/backend/pigeonhole/apps/submissions/models.py @@ -9,11 +9,14 @@ class Submissions(models.Model): submission_id = models.BigAutoField(primary_key=True) group_id = models.ForeignKey(Group, on_delete=models.CASCADE, blank=False) submission_nr = models.IntegerField() - file = models.FileField(upload_to='uploads/submissions/files/' + str(group_id) + '/' + str(submission_nr) + '/', + file = models.FileField(upload_to='uploads/submissions/files/' + + str(group_id) + '/' + str(submission_nr) + '/', null=True, blank=False, max_length=255) timestamp = models.DateTimeField(auto_now_add=True) - output_test = models.FileField(upload_to='uploads/submissions/outputs/' + str(group_id) + '/' + str(submission_nr) + '/output_test/', - null=True, blank=False, max_length=255) + output_test = models.FileField(upload_to='uploads/submissions/outputs/' + + str(group_id) + '/' + str(submission_nr) + + '/output_test/', null=True, blank=False, + max_length=255) objects = models.Manager()