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 /tests/custom_lookups | |
| parent | 61d7ae31cf286277ddefaf8006597be40388d2ee (diff) | |
| download | django-95cc0e15b45dd0986bdfd9fa3fedee4550c744c8.tar.gz | |
Fixed #22819 -- Renamed output_type -> output_field in query expression API.
Thanks jorgecarleitao for the suggestion.
Diffstat (limited to 'tests/custom_lookups')
| -rw-r--r-- | tests/custom_lookups/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/custom_lookups/tests.py b/tests/custom_lookups/tests.py index 5f9517cb63..c89b268f6e 100644 --- a/tests/custom_lookups/tests.py +++ b/tests/custom_lookups/tests.py @@ -46,7 +46,7 @@ class YearTransform(models.Transform): return connection.ops.date_extract_sql('year', lhs_sql), params @property - def output_type(self): + def output_field(self): return models.IntegerField() @@ -98,7 +98,7 @@ class SQLFunc(models.Lookup): return '%s()', [self.name] @property - def output_type(self): + def output_field(self): return CustomField() @@ -342,7 +342,7 @@ class TrackCallsYearTransform(YearTransform): return connection.ops.date_extract_sql('year', lhs_sql), params @property - def output_type(self): + def output_field(self): return models.IntegerField() def get_lookup(self, lookup_name): |
