#32509: Manytomany relations not loaded even it exists
-------------------------------------+-------------------------------------
     Reporter:  amatmv               |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  2.1
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |  worksforme
     Keywords:  manytomany,          |             Triage Stage:
  database                           |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => worksforme
 * component:  Core (Management commands) => Database layer (models, ORM)


Comment:

 > 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?

 `prefetch_related` is not related with the fields available on models.

 There is not enough details to reproduce the issue and prove it's an issue
 in Django. Also, Django 2.1 is not supported anymore. Can you reproduce
 this issue with Django 3.1+ and provide a small sample project?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32509#comment:1>
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/064.c60e4bbcef2e1c44ef960ef848f9c882%40djangoproject.com.

Reply via email to