mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Update converters to take a consistent set of parameters.
As suggested by Anssi. This has the slightly strange side effect of passing the expression to Expression.convert_value has the expression passed back to it, but it allows more complex patterns of expressions.
This commit is contained in:
@@ -112,7 +112,7 @@ class TeamField(models.CharField):
|
||||
return value
|
||||
return Team(value)
|
||||
|
||||
def from_db_value(self, value, connection, context):
|
||||
def from_db_value(self, value, expression, connection, context):
|
||||
return Team(value)
|
||||
|
||||
def value_to_string(self, obj):
|
||||
|
||||
Reference in New Issue
Block a user