fixed positioning to allow null/blank submissions on order

This commit is contained in:
2021-12-11 10:33:16 -06:00
parent ecb25abd71
commit 1b7a291b5d
2 changed files with 19 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ class Positioning(models.Model):
('DH','DH')
]
position = models.CharField(choices=positions, default=None, max_length=2, null=True, blank=True)
order = models.PositiveSmallIntegerField(default=None, null=True)
order = models.PositiveSmallIntegerField(default=None, null=True, blank=True)
class Meta:
unique_together = ('player', 'event',)