From 8300f7f51b8fb0cf32f22a2297e5aa9c2529e4e2 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 14 Feb 2019 15:17:37 -0500 Subject: [PATCH] Add django last_login information to user object. --- awx/api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 42918655e8..516491654b 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -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)