diff options
| author | Tim Graham <timograham@gmail.com> | 2014-06-17 11:57:16 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-06-17 11:57:16 -0400 |
| commit | 95cc0e15b45dd0986bdfd9fa3fedee4550c744c8 (patch) | |
| tree | b6ef1a366cb8c4c76bb16a264da0b938d51a61d6 /django/db/models/sql/query.py | |
| parent | 61d7ae31cf286277ddefaf8006597be40388d2ee (diff) | |
Fixed #22819 -- Renamed output_type -> output_field in query expression API.
Thanks jorgecarleitao for the suggestion.
Diffstat (limited to 'django/db/models/sql/query.py')
| -rw-r--r-- | django/db/models/sql/query.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index ff86e8b45b..cb2bb2f1b8 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -1102,7 +1102,7 @@ class Query(object): raise FieldError( "Unsupported lookup '%s' for %s or join on the field not " "permitted." % - (lookup, lhs.output_type.__class__.__name__)) + (lookup, lhs.output_field.__class__.__name__)) lookups = lookups[1:] def build_filter(self, filter_expr, branch_negated=False, current_negated=False, @@ -1190,7 +1190,7 @@ class Query(object): raise FieldError( "Join on field '%s' not permitted. Did you " "misspell '%s' for the lookup type?" % - (col.output_type.name, lookups[0])) + (col.output_field.name, lookups[0])) if len(lookups) > 1: raise FieldError("Nested lookup '%s' not supported." % LOOKUP_SEP.join(lookups)) |
