diff --git a/busManager/coord/models.py b/busManager/coord/models.py index efd32bc..5110579 100644 --- a/busManager/coord/models.py +++ b/busManager/coord/models.py @@ -320,6 +320,8 @@ class Family(models.Model): emergency_contact_B_lastname = models.CharField(max_length=50, blank=True) emergency_contact_B_phone = models.CharField(max_length=15, blank=True) emergency_contact_B_relation = models.CharField(max_length=50, choices=RELATIONS, blank=True) + created_on = models.DateTimeField(auto_now_add=True, blank=True, null=True) + last_edit = models.DateTimeField(auto_now=True, blank=True, null=True) class Meta: verbose_name_plural = "Families" @@ -386,6 +388,8 @@ class TravellerRoute(models.Model): fri_am = models.BooleanField(default=True) fri_pm = models.BooleanField(default=True) notes = models.TextField(blank=True, verbose_name="Driver Notes") + created_on = models.DateTimeField(auto_now_add=True, blank=True, null=True) + last_edit = models.DateTimeField(auto_now=True, blank=True, null=True) def __str__(self): return f"{self.busStop}"