Changes between Version 2 and Version 6 of Ticket #33191


Ignore:
Timestamp:
Oct 18, 2021, 10:30:22 AM (3 years ago)
Author:
Barry Johnson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33191

    • Property Triage Stage UnreviewedAccepted
    • Property Cc John Speno added
  • Ticket #33191 – Description

    v2 v6  
    2323    {{{setattr(self, field.attname, obj.pk)}}}
    2424with
    25     {{{self.__dict__[field.attname] = obj.pk}}}
     25    {{{setattr(self, field.name, obj)}}}
    2626
    2727This suggested code has -not- been tested.
    2828
    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.
     29This change would set the associated "parent_id" attribute while ensuring that the currently referenced object remains referenced.
Back to Top