Add last_update to Usage table

This commit is contained in:
Tanner Collin 2022-02-03 06:31:41 +00:00
parent 43507024b7
commit 1457714642

View File

@ -172,6 +172,7 @@ class Usage(models.Model):
device = models.CharField(max_length=64) device = models.CharField(max_length=64)
start_time = models.DateTimeField(auto_now_add=True) start_time = models.DateTimeField(auto_now_add=True)
last_update = models.DateTimeField(auto_now=True)
num_seconds = models.IntegerField() num_seconds = models.IntegerField()
history = HistoricalRecords(excluded_fields=['num_seconds']) history = HistoricalRecords(excluded_fields=['num_seconds'])