1👍
✅
User.objects.filter(
last_login__date=timezone.now().date() - timedelta(days=1)
).count()
Source:stackexchange.com
1👍
User.objects.filter(
last_login__date=timezone.now().date() - timedelta(days=1)
).count()