Good day! I use Django 1.11
There is a class that is in models.py . Let's call it User , in which there is a field called ID for recording user id.
How can I use QuerySet to pull all users from the ID field in the last 24 hours? Thank!
Good day! I use Django 1.11
There is a class that is in models.py . Let's call it User , in which there is a field called ID for recording user id.
How can I use QuerySet to pull all users from the ID field in the last 24 hours? Thank!
Source: https://ru.stackoverflow.com/questions/751500/
All Articles
django.contrib.auth.models.AbstractUserthen you already haveid,last_loginanddate_joined. Maybe I misunderstood the question? How do you define a user "in the last 24 hours"? - Vasiliy Rusin