From 7cec890411bd4fd954229fd770019fe348cbc4a3 Mon Sep 17 00:00:00 2001 From: Virendra Rajput Date: Mon, 1 Jul 2013 16:27:31 +0530 Subject: [PATCH] added 'username' field to the Admin table --- axes/admin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/axes/admin.py b/axes/admin.py index 3d22657..5432605 100644 --- a/axes/admin.py +++ b/axes/admin.py @@ -9,6 +9,7 @@ class AccessAttemptAdmin(admin.ModelAdmin): 'attempt_time', 'ip_address', 'user_agent', + 'username', 'path_info', 'failures_since_start', ) @@ -16,11 +17,13 @@ class AccessAttemptAdmin(admin.ModelAdmin): list_filter = [ 'attempt_time', 'ip_address', + 'username', 'path_info', ] search_fields = [ 'ip_address', + 'username', 'user_agent', 'path_info', ] @@ -47,6 +50,7 @@ class AccessLogAdmin(admin.ModelAdmin): 'attempt_time', 'logout_time', 'ip_address', + 'username', 'user_agent', 'path_info', ) @@ -55,12 +59,14 @@ class AccessLogAdmin(admin.ModelAdmin): 'attempt_time', 'logout_time', 'ip_address', + 'username', 'path_info', ] search_fields = [ 'ip_address', 'user_agent', + 'username', 'path_info', ]