1
0
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:
Bill Nottingham 2019-02-14 15:17:37 -05:00
parent 456ef49ee3
commit 8300f7f51b

View File

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