]> git.parisson.com Git - teleforma.git/commitdiff
Fixed correcteurs form
authorGael Le Mignot <gael@pilotsystems.net>
Thu, 24 Jun 2021 07:10:42 +0000 (09:10 +0200)
committerGael Le Mignot <gael@pilotsystems.net>
Thu, 24 Jun 2021 07:12:28 +0000 (09:12 +0200)
teleforma/forms.py

index c587870225022dfd14ed28a0520892c044f67514..38c8373f58725fcccca2ec43ee4859661ee68de7 100644 (file)
@@ -295,7 +295,7 @@ class CorrectorForm(ModelForm):
                               pay_status=data.get('pay_status'),
                               )
         corrector.save()
-        corrector.courses = data.get('courses')
+        corrector.courses.set(data.get('courses'))
         return user