I've just started to learn how to do queries in my Django application, and I have a query that gets me the list of new users filtered by the date joined:
newUsers = User.objects.filter(is_active=True).order_by("-date_joined")
This as I understand it gives me ALL the users, sorted by date joined. How would I best limit it to get me the last N users?
On this, does anyone recommend and reading material to learn more about these types of queries?