Skip to content

Commit

Permalink
fix: remove context argument from from_db_value method (removed i…
Browse files Browse the repository at this point in the history
…n Django 3) (#1978)

Fixes #1971
  • Loading branch information
dbischof authored May 27, 2021
1 parent bcc979a commit 90f23dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mezzanine/core/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_db_prep_value(self, value, connection, **kwargs):
value = ",".join([str(i) for i in 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):
Expand Down

0 comments on commit 90f23dd

Please sign in to comment.