cschand skrev: > Thanks for you replies > > but one thing... there are some differences between get and filter > > from get return obj is user model obj > but in filter it is recordsets... (I don't know i am right or not) >
.get(...) returns a model object .filter(...) returns a queryset - which can be treated like a list of model objects (almost). .filter(...)[0] returns a model object - or throws an error (IndexError I hope) if no records are found. Nis --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---