How is `exact` lookup different from `equal` lookup in Django -
how exact
lookup diffferent equal
lookup in django
i have 2 queries
blog.objects.get(title=title) blog.objects.get(title__exact=title)
what difference between these two?
there no difference, first 1 same second one.
look @ documentation:
blog.objects.get(id__exact=14) # explicit form blog.objects.get(id=14) # __exact implied
Comments
Post a Comment