Skip to content

Commit

Permalink
drop support for Django<2
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed May 9, 2020
1 parent 45ee0c8 commit fb11e01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shop/models/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def deconstruct(self):
kwargs['default'] = kwargs['default'].value
return name, path, args, kwargs

def from_db_value(self, value, expression, connection, context=None):
def from_db_value(self, value, expression, connection):
try:
return self.enum_type(value)
except ValueError:
Expand Down
2 changes: 1 addition & 1 deletion shop/money/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_prep_value(self, value):
value = super(models.DecimalField, self).get_prep_value(value)
return super(MoneyField, self).to_python(value)

def from_db_value(self, value, expression, connection, context=None):
def from_db_value(self, value, expression, connection):
if value is None:
return
if isinstance(value, float):
Expand Down

0 comments on commit fb11e01

Please sign in to comment.