#33011: my_model.manyrelation_set.all() return empty value
-------------------------------------+-------------------------------------
     Reporter:  Floréal Cabanettes   |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  3.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  model set querying   |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Floréal Cabanettes):

 This apply some filters on the data (like filters given in input).

 But it's not linked to this problem. I try to replace this line by:

 {{{
 my_run = self.queryset.get(pk=pk)
 }}}

 or by :

 {{{
 my_run = Run.objects.get(pk=pk)
 }}}

 and the problem is still the same.

 Replying to [comment:3 Carlton Gibson]:
 > Hi Floréal — thanks for the further detail.
 >
 > Can you give some indication of the prefetch usage in the
 `get_queryset()` method here please:
 >
 > {{{
 > my_run = self.get_queryset().get(pk=pk)
 > }}}
 >
 >
 > Thanks.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33011#comment:4>
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/068.9032286b7df75b37ff9d4be60cfc1967%40djangoproject.com.

Reply via email to