Skip to content

Commit

Permalink
django 4 upgrade - we can prob remove context param altogether
Browse files Browse the repository at this point in the history
  • Loading branch information
RonShub committed Mar 26, 2023
1 parent a7976ab commit ec55619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fernet_fields/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_db_prep_save(self, value, connection):
retval = self.fernet.encrypt(force_bytes(value))
return connection.Database.Binary(retval)

def from_db_value(self, value, expression, connection, context):
def from_db_value(self, value, expression, connection, context=None):
if value is not None:
if value not in self.allowed_unencrypted_values:
value = self.fernet.decrypt(force_bytes(value))
Expand Down

0 comments on commit ec55619

Please sign in to comment.