#32509: Manytomany relations not loaded even it exists
-------------------------------------+-------------------------------------
Reporter: amatmv | Owner: nobody
Type: Bug | Status: new
Component: Core | Version: 2.1
(Management commands) | Keywords: manytomany,
Severity: Normal | database
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hi,
we run a production ecommerce with an average of ~50k sessions per day. In
the last few weeks we're facing a constant error in production where many
queries are throwing the same error, but in different situations.
The error is: "Cannot resolve keyword <field> into field. Choices are:
..."
I acknowledge that this error is thrown whenever we're trying to join a
table through a field that doesn't exist in the model, but the thing is
that now we daily get thousands of this error in different situations,
apparently in random parts of the code.
I also know that there is the method `prefetch_related` that loads the M2M
relations, but are we supposed to -right now- do a deploy calling this
method in all the places that we get the same error?
Thank you!!
--
Ticket URL: <https://code.djangoproject.com/ticket/32509>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.372834a27787aa53bd77ebdd297ed089%40djangoproject.com.