From 90aba2ed15e444823118f25f0871dd45c9d21716 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sun, 23 Sep 2018 11:56:04 +0200 Subject: [PATCH] Remove context parameter from DictField.from_db_value (RemovedInDjango30Warning) --- umap/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/fields.py b/umap/fields.py index f60a62fa..064bd2f3 100644 --- a/umap/fields.py +++ b/umap/fields.py @@ -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):