summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2017-07-19 22:40:56 +0500
committerTim Graham <timograham@gmail.com>2017-07-19 13:40:56 -0400
commit3f7953846ee2e60a2cd56d6dea3b0ba9ffaa76c5 (patch)
tree604960554d19deab1ee56fc8b4d59904dc4a13f0 /django
parent196da41ee2e0ff144d2de429a946da3e6674cc37 (diff)
Fixed typo in DistanceLookupBase.process_rhs() error message.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/gis/db/models/lookups.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/gis/db/models/lookups.py b/django/contrib/gis/db/models/lookups.py
index c34e3391e1..42089f64d2 100644
--- a/django/contrib/gis/db/models/lookups.py
+++ b/django/contrib/gis/db/models/lookups.py
@@ -306,7 +306,7 @@ class DistanceLookupBase(GISLookup):
if not isinstance(self.rhs, (tuple, list)) or not 2 <= len(self.rhs) <= 4:
raise ValueError("2, 3, or 4-element tuple required for '%s' lookup." % self.lookup_name)
elif len(self.rhs) == 4 and not self.rhs[3] == 'spheroid':
- raise ValueError("For 4-element tuples the last argument must be the 'speroid' directive.")
+ raise ValueError("For 4-element tuples the last argument must be the 'spheroid' directive.")
# Check if the second parameter is a band index.
if len(self.rhs) > 2 and not self.rhs[2] == 'spheroid':