--
Ticket URL: <http://code.djangoproject.com/ticket/16043>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_docs: => 0
Comment:
This looks a lot like #15250, but it's not exactly the same bug. At least,
the patch currently available on #15250 does not fix this issue.
I'm attaching a test case in the form of a patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/16043#comment:1>
Comment (by aaugustin):
The issue still exists. However, it can be reproduced without
select_related. The problem is really in model inheritance. So the test
case I wrote two years ago is inappropriate.
--
Ticket URL: <https://code.djangoproject.com/ticket/16043#comment:3>
Comment (by timgraham):
#25173 seems to be a duplicate and also has a test.
--
Ticket URL: <https://code.djangoproject.com/ticket/16043#comment:4>
* owner: nobody => czpython
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/16043#comment:5>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/16043#comment:6>
Comment (by phildini):
I believe the PR czpython made for this ticket is
https://github.com/django/django/pull/6721.
--
Ticket URL: <https://code.djangoproject.com/ticket/16043#comment:7>
* has_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/16043#comment:8>
Comment (by czpython):
Removed the has patch set flag as PR 6721 is only the base for this.
The fix will be in a separate PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/16043#comment:9>
Comment (by Tim Graham <timograham@…>):
In [changeset:"bfb746f983aa741afa3709794e70f1e0ab6040b5" bfb746f9]:
{{{
#!CommitTicketReference repository=""
revision="bfb746f983aa741afa3709794e70f1e0ab6040b5"
Refs #16043 -- Refactored internal fields value cache.
* Removed all hardcoded logic for _{fieldname}_cache.
* Added an internal API for interacting with the field values cache.
Thanks carljm and MarkusH for support.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/16043#comment:10>
* status: assigned => closed
* resolution: => fixed
--
Ticket URL: <https://code.djangoproject.com/ticket/16043#comment:11>
* status: closed => new
* resolution: fixed =>
Comment:
I think a regression test should be added before closing this ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/16043#comment:12>
* status: new => closed
* resolution: => fixed
Comment:
After investigation, I found that this was fixed by
78c5e7b90eee10067d39a8ba6588e6b53ba00d82 which did add an appropriate
test.
--
Ticket URL: <https://code.djangoproject.com/ticket/16043#comment:13>