fix
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 8 Nov 2013 14:22:47 +0000 (15:22 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 15 Jan 2014 10:18:58 +0000 (11:18 +0100)
wtem/forms.py

index 21e2cf2..fcce303 100644 (file)
@@ -25,7 +25,7 @@ class WTEMForm(forms.ModelForm):
             try:
                 attachment = Attachment.objects.get(submission = submission, exercise_id = exercise_id)
             except Attachment.DoesNotExist:
-                attachment = Attachment(fsubmission = submission, exercise_id = exercise_id)
+                attachment = Attachment(submission = submission, exercise_id = exercise_id)
             attachment.file = file
             attachment.save()