Add last_update to Usage table
This commit is contained in:
parent
43507024b7
commit
1457714642
|
@ -172,6 +172,7 @@ class Usage(models.Model):
|
|||
|
||||
device = models.CharField(max_length=64)
|
||||
start_time = models.DateTimeField(auto_now_add=True)
|
||||
last_update = models.DateTimeField(auto_now=True)
|
||||
num_seconds = models.IntegerField()
|
||||
|
||||
history = HistoricalRecords(excluded_fields=['num_seconds'])
|
||||
|
|
Loading…
Reference in New Issue
Block a user