field=models.CharField(blank=True,choices=[('Occupied','Occupied'),('Unoccupied','Unoccupied')],max_length=15,null=True,verbose_name='and this status'),
@@ -716,6 +732,7 @@ class AlertCondition(models.Model):
...
@@ -716,6 +732,7 @@ class AlertCondition(models.Model):
# fields to qualify the condition test according to building mode
# fields to qualify the condition test according to building mode
only_if_bldg=models.ForeignKey(Building,models.SET_NULL,verbose_name='But only if building',blank=True,null=True)
only_if_bldg=models.ForeignKey(Building,models.SET_NULL,verbose_name='But only if building',blank=True,null=True)
only_if_bldg_mode=models.ForeignKey(BuildingMode,models.SET_NULL,verbose_name='is in this mode',blank=True,null=True)
only_if_bldg_mode=models.ForeignKey(BuildingMode,models.SET_NULL,verbose_name='is in this mode',blank=True,null=True)
only_if_bldg_status=models.CharField(verbose_name='and this status',max_length=15,blank=True,null=True,choices=(('Occupied','Occupied'),('Unoccupied','Unoccupied')))
# alert message. If left blank a message will be created from other field values.
# alert message. If left blank a message will be created from other field values.