Skip to content

Commit

Permalink
Reverted calling field.to_python in Model._save_table.
Browse files Browse the repository at this point in the history
  • Loading branch information
nessita committed Oct 30, 2023
1 parent 69864eb commit 888f049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/db/models/base.py
Expand Up @@ -1061,7 +1061,7 @@ def _save_table(
)
if results:
for value, field in zip(results[0], returning_fields):
setattr(self, field.attname, field.to_python(value))
setattr(self, field.attname, value)
return updated

def _do_update(self, base_qs, using, pk_val, values, update_fields, forced_update):
Expand Down

0 comments on commit 888f049

Please sign in to comment.