|
|
|
|
@ -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, |
|
|
|
|
|