mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and Expression.convert_value().
Unused since a0d166306f
.
This commit is contained in:
parent
8d5095d8a3
commit
487362fa8f
28 changed files with 124 additions and 60 deletions
|
@ -40,7 +40,7 @@ class MyAutoField(models.CharField):
|
|||
value = MyWrapper(value)
|
||||
return value
|
||||
|
||||
def from_db_value(self, value, expression, connection, context):
|
||||
def from_db_value(self, value, expression, connection):
|
||||
if not value:
|
||||
return
|
||||
return MyWrapper(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue