Database problem in Django

32 views
Skip to first unread message

Ashu Singh

unread,
Jun 18, 2014, 8:06:18 AM6/18/14
to django...@googlegroups.com
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. 

C. Kirby

unread,
Jun 18, 2014, 11:45:12 AM6/18/14
to django...@googlegroups.com
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

Stodge

unread,
Jun 19, 2014, 8:44:02 AM6/19/14
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages