fix bug model datefield Form (Federated User Admin)

This commit is contained in:
Philippe Vivien 2020-10-14 18:11:34 +02:00
parent f15d0fa448
commit a7427ed795

View file

@ -180,7 +180,7 @@ class FederatedUser(JsonAttributes):
#: The last ticket used to authenticate :attr:`username` against :attr:`provider` #: The last ticket used to authenticate :attr:`username` against :attr:`provider`
ticket = models.CharField(max_length=255) ticket = models.CharField(max_length=255)
#: Last update timespampt. Usually, the last time :attr:`ticket` has been set. #: 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): def __str__(self):
return self.federated_username return self.federated_username