diff --git a/tournaments/admin.py b/tournaments/admin.py index 01caa10..280e5d0 100644 --- a/tournaments/admin.py +++ b/tournaments/admin.py @@ -191,7 +191,7 @@ class TournamentAdmin(SyncedObjectAdmin): users_app = CustomUser.objects.filter(origin=2).count() # APP # Recent User Registrations - recent_users = CustomUser.objects.all().order_by('-date_joined')[:10] + recent_app_users = CustomUser.objects.filter(origin=2).order_by('-date_joined')[:10] # New users by period users_today = CustomUser.objects.filter(date_joined__date=today).count() @@ -273,7 +273,7 @@ class TournamentAdmin(SyncedObjectAdmin): 'users_today': users_today, 'users_this_week': users_this_week, 'users_this_month': users_this_month, - 'recent_users': recent_users, + 'recent_app_users': recent_app_users, # Purchase statistics 'total_purchases': total_purchases, diff --git a/tournaments/templates/admin/tournaments/dashboard.html b/tournaments/templates/admin/tournaments/dashboard.html index 0325dc7..7d43d71 100644 --- a/tournaments/templates/admin/tournaments/dashboard.html +++ b/tournaments/templates/admin/tournaments/dashboard.html @@ -222,7 +222,7 @@

- Recently Registered Users + Recently Registered App Users View All Users @@ -238,7 +238,7 @@ - {% for user in recent_users %} + {% for user in recent_app_users %} {{ user.first_name }} {{ user.last_name }} {{ user.email }}