Add field for wireless config status to Device model

This commit is contained in:
Kumi 2019-02-02 08:00:33 +00:00
parent 9b73d9a340
commit d693653464

View file

@ -61,6 +61,7 @@ class Device(models.Model):
update = models.BooleanField("Trigger Firmware Update", default=False)
reboot = models.BooleanField("Trigger Reboot", default=False)
changed = models.DateTimeField("Last Change of Device Config")
wireless = models.DateTimeField("Last Update of Wireless Config", blank=True, null=True, editable=False)
def __str__(self):
return "%s%s" % (self.serial, " (%s)" % self.curip if self.curip else "")