Changes between Version 1 and Version 2 of Ticket #35044, comment 1


Ignore:
Timestamp:
Feb 4, 2024, 3:31:53 PM (7 months ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35044, comment 1

    v1 v2  
    11Feels like a bug to me.
    22
    3 When `refresh_from_db(fields)` is specified it should likely not clear reverse relationships and I think the same can be said about
     3When `refresh_from_db(fields)` is specified it should likely not clear reverse relationships and I think the same can be said about private fields.
    44
    55Regression in a7b5ad8b19a08d7d57302ece74f6e26d2887fd9f #27846 for reverse relations and possibly 123b1d3fcf79f091573c40be6da7113a6ef35b62 #34137 for private fields. The private field situation is more complex though as they might be composed of other fields (e.g. `GenericForeignKey`) but the field APIs doesn't expose a generic way of introspecting that so I would assume we'd still want to clear even if `fields` is specified.
Back to Top