79282957

Date: 2024-12-15 18:53:20
Score: 1
Natty:
Report link

Check if you deleted that field directly of Model instance. The principle is, that when you pass an object to a function, it is the same object and not a copy of it, so the deletion of an attribute by, for example, del vars(object)[field] would change the original object. Instead use copy.deepcopy(object) before changing it.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dimon Agon