Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PJDeSmijter committed Mar 7, 2024
1 parent 88a5c0e commit d8143d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@


class Migration(migrations.Migration):

dependencies = [
('submissions',
('submissions',
'0003_alter_submissions_file_alter_submissions_output_test'),
]

Expand All @@ -18,16 +17,16 @@ class Migration(migrations.Migration):
max_length=255,
null=True,
upload_to='uploads/submissions/files/<django.db.models.fields.'
'related.ForeignKey>/<django.db.models.fields.IntegerField>/'),
'related.ForeignKey>/<django.db.models.fields.IntegerField>/'),
),
migrations.AlterField(
model_name='submissions',
name='output_test',
field=models.FileField(
max_length=255,
null=True,
upload_to='uploads/submissions/outputs/<django.db.models.fields.'
'related.ForeignKey>/<django.db.models.fields.IntegerField>'
'/output_test/'),
max_length=255,
null=True,
upload_to='uploads/submissions/outputs/<django.db.models.fields.'
'related.ForeignKey>/<django.db.models.fields.IntegerField>'
'/output_test/'),
),
]
9 changes: 6 additions & 3 deletions backend/pigeonhole/apps/submissions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit d8143d6

Please sign in to comment.