Read the documentation: https://docs.djangoproject.com/en/dev/ref/models/querysets/#order-by
On Wednesday, 18 June 2014 08:06:18 UTC-4, Ashu Singh wrote: > > Hello everyone. My doubt is how to fetch the recent two database entries > in django. User may enter into database anytime but the query should always > fetch last two entries. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/47930d12-fa79-4180-9139-d2601af88586%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

