mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #28370 -- Removed support for the context arg of Field.from_db_value() and Expression.convert_value().
Per deprecation timeline.
This commit is contained in:
parent
7c66aaa2b6
commit
da5eb3d56c
6 changed files with 8 additions and 58 deletions
|
@ -28,12 +28,3 @@ class CashModel(models.Model):
|
|||
|
||||
def __str__(self):
|
||||
return str(self.cash)
|
||||
|
||||
|
||||
class CashFieldDeprecated(CashField):
|
||||
def from_db_value(self, value, expression, connection, context):
|
||||
return super().from_db_value(value, expression, connection)
|
||||
|
||||
|
||||
class CashModelDeprecated(models.Model):
|
||||
cash = CashFieldDeprecated()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue