fix bug model datefield Form (Federated User Admin)
This commit is contained in:
parent
f15d0fa448
commit
a7427ed795
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue