Skip to content

Commit

Permalink
show latest users login time in admin view
Browse files Browse the repository at this point in the history
  • Loading branch information
DerouineauNicolas committed Apr 28, 2024
1 parent ee1768a commit 8e4db1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/StreamServerApp/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from django.conf import settings
import os
import shutil
from django.contrib.auth.admin import UserAdmin



Expand Down Expand Up @@ -60,3 +61,5 @@ def delete_queryset(self, request, queryset):
admin.site.register(Movie, MovieAdmin)
admin.site.register(Series, SeriesAdmin)
admin.site.register(Subtitle)

UserAdmin.list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff', 'last_login')

0 comments on commit 8e4db1d

Please sign in to comment.