mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Add django last_login information to user object.
This commit is contained in:
parent
456ef49ee3
commit
8300f7f51b
@ -893,7 +893,7 @@ class UserSerializer(BaseSerializer):
|
||||
model = User
|
||||
fields = ('*', '-name', '-description', '-modified',
|
||||
'username', 'first_name', 'last_name',
|
||||
'email', 'is_superuser', 'is_system_auditor', 'password', 'ldap_dn', 'external_account')
|
||||
'email', 'is_superuser', 'is_system_auditor', 'password', 'ldap_dn', 'last_login', 'external_account')
|
||||
|
||||
def to_representation(self, obj): # TODO: Remove in 3.3
|
||||
ret = super(UserSerializer, self).to_representation(obj)
|
||||
|
Loading…
Reference in New Issue
Block a user