Changes between Version 2 and Version 6 of Ticket #33191
- Timestamp:
- Oct 18, 2021, 10:30:22 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33191
- Property Triage Stage Unreviewed → Accepted
- Property Cc added
-
Ticket #33191 – Description
v2 v6 23 23 {{{setattr(self, field.attname, obj.pk)}}} 24 24 with 25 {{{se lf.__dict__[field.attname] = obj.pk}}}25 {{{setattr(self, field.name, obj)}}} 26 26 27 27 This suggested code has -not- been tested. 28 28 29 This change would set the associated "parent_id" attribute to the desired value without affecting the cache. In this spot of the code, "obj" is currently set to the cached parent object that we want to preserve, and we're just reconciling the associated copy of the parent's primary key.29 This change would set the associated "parent_id" attribute while ensuring that the currently referenced object remains referenced.