Skip to content

Commit

Permalink
[FIX] dms_file: Fix inverse
Browse files Browse the repository at this point in the history
  • Loading branch information
etobella committed May 18, 2022
1 parent 5f146f5 commit b0902b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dms/models/dms_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _update_content_vals(self, vals, binary):
)
if self.storage_id.save_type in ["file", "attachment"]:
new_vals["content_file"] = self.content
else:
elif self.storage_id.save_type == "database":
new_vals["content_binary"] = self.content and binary
return new_vals

Expand Down

0 comments on commit b0902b0

Please sign in to comment.