Last Connection date for user in admin panel (#3747)

* Last Connection date for user in admin panel

display last connection for each user in user admin panel.
add the date at the end of the tab

* Update admin.py

* Update admin.py
This commit is contained in:
Bben authored and GitHub committed 2022-10-06 22:35:20 +11:00
1 parent b13c5b2c13
commit cfff5ea264
1 file changed
+1 -1
+1 -1
View File
@@ -208,7 +208,7 @@ class InvenTreeUserAdmin(UserAdmin):
(And it's confusing!)
"""
list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff', 'last_login') # display last connection for each user in user admin panel.
fieldsets = (
(None, {'fields': ('username', 'password')}),
(_('Personal info'), {'fields': ('first_name', 'last_name', 'email')}),