# Note that you can't use 'offset' without 'limit' (on some dbs), so
this doesn't work:
>>> Article.objects.all()[2:]
Traceback (most recent call last):
...
AssertionError: 'offset' is not allowed without 'limit'
I want to get X last entries from a DB like in example above. How can
I specify a "limit" - or what is the easiest way to get X last
objects ? I'm using MySQL, and pre0.97
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---