summaryrefslogtreecommitdiff
path: root/semantic_version/django_fields.py
diff options
context:
space:
mode:
authorDan Kolbman <dankolbman@gmail.com>2019-08-27 09:21:13 -0400
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2019-08-30 09:48:29 +0200
commit17949b82ac9a1173566c08bab4b254e9d64a7ce1 (patch)
treebfefc34c22663d1311b82137a639986d8555e474 /semantic_version/django_fields.py
parentc1bc1e48b091b0ca73ac1eeb37d8a8e73d3f15bb (diff)
downloadsemantic-version-17949b82ac9a1173566c08bab4b254e9d64a7ce1.tar.gz
Adapt from_db_value() for Django 3
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'semantic_version/django_fields.py')
-rw-r--r--semantic_version/django_fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/semantic_version/django_fields.py b/semantic_version/django_fields.py
index 97f9ce1..caa7a8c 100644
--- a/semantic_version/django_fields.py
+++ b/semantic_version/django_fields.py
@@ -16,7 +16,7 @@ class SemVerField(models.CharField):
kwargs.setdefault('max_length', 200)
super(SemVerField, self).__init__(*args, **kwargs)
- def from_db_value(self, value, expression, connection, context):
+ def from_db_value(self, value, expression, connection, *args):
"""Convert from the database format.
This should be the inverse of self.get_prep_value()