From a7427ed795b7711af25f86e39114d994ef30bab2 Mon Sep 17 00:00:00 2001 From: Philippe Vivien Date: Wed, 14 Oct 2020 18:11:34 +0200 Subject: [PATCH] fix bug model datefield Form (Federated User Admin) --- cas_server/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cas_server/models.py b/cas_server/models.py index b8950a6..1b38383 100644 --- a/cas_server/models.py +++ b/cas_server/models.py @@ -180,7 +180,7 @@ class FederatedUser(JsonAttributes): #: The last ticket used to authenticate :attr:`username` against :attr:`provider` ticket = models.CharField(max_length=255) #: Last update timespampt. Usually, the last time :attr:`ticket` has been set. - last_update = models.DateTimeField(auto_now=True) + last_update = models.DateTimeField(default=timezone.now) def __str__(self): return self.federated_username