Remove context parameter from DictField.from_db_value (RemovedInDjango30Warning)

This commit is contained in:
Yohan Boniface 2018-09-23 11:56:04 +02:00
parent 5ea9fc753d
commit 90aba2ed15

View file

@ -17,7 +17,7 @@ class DictField(models.TextField):
value = json.dumps(value)
return value
def from_db_value(self, value, expression, connection, context):
def from_db_value(self, value, expression, connection):
return self.to_python(value)
def to_python(self, value):