Add more base functions

This commit is contained in:
R. Miles McCain
2020-04-12 14:19:52 -04:00
parent 565cba18e2
commit 2f06ecabd7
20 changed files with 417 additions and 117 deletions

View File

@@ -70,3 +70,7 @@ class Hit(models.Model):
location = models.TextField(blank=True)
referrer = models.TextField(blank=True)
load_time = models.FloatField(null=True)
@property
def duration(self):
return self.last_seen - self.start_time