Merge pull request #66 from pahpa/hotfix

fix bug model datefield Form (Federated User Admin)
This commit is contained in:
Valentin Samir 2020-12-06 15:43:40 +01:00 committed by GitHub
commit f2acf179ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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