On Tue, 2008-08-19 at 12:48 -0700, akonsu wrote: > hello, > > what is the difference between > > MyModel.objects.filter(field=value) and > MyModel.objects.filter(field__exact=value) ? > > i could not find an explanation in the docs.
It's documented here: http://www.djangoproject.com/documentation/db-api/#default-lookups-are-exact There is no difference between them (except if you have a form field called "exact" in which case the first version would raise an error, whilst the second version resolves the ambiguity). Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

