On Mon, Feb 9, 2009 at 12:37 AM, gganesh <ganesh....@gmail.com> wrote:
> > hi , > help to find the difference between get() and filter() function in > django ,both seems to retrieve records from data base . > Thanks > > > > filter() returns another QuerySet, that is it returns multiple objects, get() returns a single object and raises an exception if either more than 1 object are returned, or none are returned. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---