mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #22819 -- Renamed output_type -> output_field in query expression API.
Thanks jorgecarleitao for the suggestion.
This commit is contained in:
parent
61d7ae31cf
commit
95cc0e15b4
8 changed files with 31 additions and 31 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue