Constraint Violation checking & visualization
Compare changes
Files
2- Benjamin Hättasch authored
Add helper fields and methods to ConstraintViolation model Introduce helper method do determine whether two AKSlots overlap Add receivers to AKScheduling Implement stub for OWNER_TWO_SLOTS violation
+ 45
− 1
@@ -325,7 +325,8 @@ class AKSlot(models.Model):
@@ -325,7 +325,8 @@ class AKSlot(models.Model):
duration = models.DecimalField(max_digits=4, decimal_places=2, default=2, verbose_name=_('Duration'),
fixed = models.BooleanField(default=False, verbose_name=_('Scheduling fixed'), help_text=_('Length and time of this AK should not be changed'))
@@ -388,6 +389,9 @@ class AKSlot(models.Model):
@@ -388,6 +389,9 @@ class AKSlot(models.Model):
@@ -496,5 +500,45 @@ class ConstraintViolation(models.Model):
@@ -496,5 +500,45 @@ class ConstraintViolation(models.Model):