help_text=_("Message to the organizers. This is not publicly visible."))
timestamp=models.DateTimeField(auto_now_add=True)
classMeta:
...
...
@@ -386,7 +391,8 @@ class ConstraintViolation(models.Model):
REQUIRE_NOT_GIVEN='rng',_('Room does not satisfy the requirement of the scheduled AK')
AK_CONFLICT_COLLISION='acc',_('AK Slot is scheduled at the same time as an AK listed as a conflict')
AK_BEFORE_PREREQUISITE='abp',_('AK Slot is scheduled before an AK listed as a prerequisite')
AK_AFTER_RESODEADLINE='aar',_('AK Slot for AK with intention to submit a resolution is scheduled after resolution deadline')
AK_AFTER_RESODEADLINE='aar',_(
'AK Slot for AK with intention to submit a resolution is scheduled after resolution deadline')
AK_CATEGORY_MISMATCH='acm',_('AK Slot in a category is outside that categories availabilities')
AK_SLOT_COLLISION='asc',_('Two AK Slots for the same AK scheduled at the same time')
ROOM_CAPACITY_EXCEEDED='rce',_('AK Slot is scheduled in a room with less space than interest')
...
...
@@ -396,13 +402,18 @@ class ConstraintViolation(models.Model):
WARNING=1,_('Warning')
VIOLATION=10,_('Violation')
type=models.CharField(verbose_name=_('Type'),max_length=3,choices=ViolationType.choices,help_text=_('Type of violation, i.e. what kind of constraint was violated'))
level=models.PositiveSmallIntegerField(verbose_name=_('Level'),choices=ViolationLevel.choices,help_text=_('Severity level of the violation'))