From d4431a7c4a31b05356fd1efc9e5cc91dda58ad4b Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 10 Oct 2020 16:36:31 +0100 Subject: small tidy --- ctrack/register/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ctrack/register/models.py') diff --git a/ctrack/register/models.py b/ctrack/register/models.py index c94e440..949c8d0 100644 --- a/ctrack/register/models.py +++ b/ctrack/register/models.py @@ -34,6 +34,7 @@ class AuditableEventBase(models.Model): abstract = True def save(self, *args, **kwargs): + """Overriding so we can save the dates in here.""" if not self.pk: self.created_date = datetime.datetime.now() self.modified_date = datetime.datetime.now() -- cgit v1.2.3