arbiters not required
authorJan Szejko <janek37@gmail.com>
Wed, 11 Jan 2017 13:27:06 +0000 (14:27 +0100)
committerJan Szejko <janek37@gmail.com>
Wed, 11 Jan 2017 13:27:06 +0000 (14:27 +0100)
stage2/models.py

index 81625b9..cc1f1d5 100644 (file)
@@ -63,7 +63,8 @@ class Assignment(models.Model):
     deadline = models.DateTimeField(_('deadline'))
     max_points = models.IntegerField(_('max points'))
     experts = models.ManyToManyField(User, verbose_name=_('experts'), related_name='stage2_assignments')
-    arbiters = models.ManyToManyField(User, verbose_name=_('arbiters'), related_name='stage2_arbitrated')
+    arbiters = models.ManyToManyField(
+        User, empty=True, verbose_name=_('arbiters'), related_name='stage2_arbitrated')
     file_descriptions = JSONField(_('file descriptions'))
 
     class Meta: