Fixed typo in django/db/models/query_utils.py comment.

This commit is contained in:
David Beitey 2019-04-03 16:18:54 +10:00 committed by Mariusz Felisiak
parent 851d9eac23
commit 8bdb12c1d3
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ def check_rel_lookup_compatibility(model, target_opts, field):
# If the field is a primary key, then doing a query against the field's # If the field is a primary key, then doing a query against the field's
# model is ok, too. Consider the case: # model is ok, too. Consider the case:
# class Restaurant(models.Model): # class Restaurant(models.Model):
# place = OnetoOneField(Place, primary_key=True): # place = OneToOneField(Place, primary_key=True):
# Restaurant.objects.filter(pk__in=Restaurant.objects.all()). # Restaurant.objects.filter(pk__in=Restaurant.objects.all()).
# If we didn't have the primary key check, then pk__in (== place__in) would # If we didn't have the primary key check, then pk__in (== place__in) would
# give Place's opts as the target opts, but Restaurant isn't compatible # give Place's opts as the target opts, but Restaurant isn't compatible