mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
added 'username' field to the Admin table
This commit is contained in:
parent
9db538e1e7
commit
7cec890411
1 changed files with 6 additions and 0 deletions
|
|
@ -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',
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue