I just started learning how to make requests in a Django application, and I have a request that gets a list of new users filtered by join date:
newUsers = User.objects.filter(is_active=True).order_by("-date_joined")
This, as I understand it, gives me ALL users sorted by date. What is the best way to limit it to get the last N users from me?
On this, does anyone recommend and read material to learn more about these types of queries?
source
share