You really need to show the models you are interested in this working on. In particular you will need the models to have a "created time" or something similar to order your query on.
Kirby On Wednesday, June 18, 2014 7:06:18 AM UTC-5, 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/10da09bf-4d55-4c04-a856-620a0159da38%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

