From 3f7953846ee2e60a2cd56d6dea3b0ba9ffaa76c5 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Wed, 19 Jul 2017 22:40:56 +0500 Subject: Fixed typo in DistanceLookupBase.process_rhs() error message. --- django/contrib/gis/db/models/lookups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') 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': -- cgit v1.3