X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/068d95bd6f8b28031a9e5236dbec460aad44ae7a..38db2a3649a08d686252216508d83a4d802464b9:/wtem/models.py diff --git a/wtem/models.py b/wtem/models.py index 4c91392..bef8b7c 100644 --- a/wtem/models.py +++ b/wtem/models.py @@ -66,7 +66,7 @@ class Submission(models.Model): class Attachment(models.Model): submission = models.ForeignKey(Submission) - name = models.CharField(max_length=100) + exercise_id = models.IntegerField() file = models.FileField(upload_to = 'wtem/attachment')