summaryrefslogtreecommitdiff
path: root/django/db/models/sql
diff options
context:
space:
mode:
authorFrançois Freitag <francois.freitag@gmail.com>2016-09-17 06:29:14 -0700
committerTim Graham <timograham@gmail.com>2016-09-17 09:29:14 -0400
commit631ef6b2729f79c75f35cd32caa504dda7c32e9e (patch)
treea965597f3c1260ef2e956fafcf46a9b0e8727f91 /django/db/models/sql
parent9027e6c8a3711034d345535036d1a276d9a8b829 (diff)
Made FieldError/FieldDoesNotExist messages uniform across Python versions.
Removed possible u'' prefixes on Python 2.
Diffstat (limited to 'django/db/models/sql')
-rw-r--r--django/db/models/sql/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index 9c46ee4ca1..e6516194dd 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -1339,7 +1339,7 @@ class Query(object):
if pos == -1 or fail_on_missing:
field_names = list(get_field_names_from_opts(opts))
available = sorted(field_names + list(self.annotation_select))
- raise FieldError("Cannot resolve keyword %r into field. "
+ raise FieldError("Cannot resolve keyword '%s' into field. "
"Choices are: %s" % (name, ", ".join(available)))
break
# Check if we need any joins for concrete inheritance cases (the