Skip to content

Commit

Permalink
Fix context from_db_value
Browse files Browse the repository at this point in the history
  • Loading branch information
silentsokolov committed Oct 15, 2018
1 parent 7388446 commit ba27c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion treasuremap/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def get_db_prep_value(self, value, connection, prepared=False):

return str(value)

def from_db_value(self, value, expression, connection, **kwargs):
def from_db_value(self, value, expression, connection, *args, **kwargs):
return self.to_python(value)

def formfield(self, **kwargs):
Expand Down

0 comments on commit ba27c31

Please sign in to comment.