summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Beitey <david@davidjb.com>2019-04-03 16:18:54 +1000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-04-03 08:18:54 +0200
commit8bdb12c1d3829f0d8d42068892f7e8322eaa9dab (patch)
treeafdf53875328d9c0d99f1a9d4209e49306323cc4
parent851d9eac23e08ff10a2d6fe5368b02798761663c (diff)
Fixed typo in django/db/models/query_utils.py comment.
-rw-r--r--django/db/models/query_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/query_utils.py b/django/db/models/query_utils.py
index f6bc0bd030..90289d0da2 100644
--- a/django/db/models/query_utils.py
+++ b/django/db/models/query_utils.py
@@ -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
# model is ok, too. Consider the case:
# class Restaurant(models.Model):
- # place = OnetoOneField(Place, primary_key=True):
+ # place = OneToOneField(Place, primary_key=True):
# Restaurant.objects.filter(pk__in=Restaurant.objects.all()).
# 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