#30270: .all() for related manager always returns empty list
-------------------------------------+-------------------------------------
               Reporter:  Victor     |          Owner:  nobody
  Porton                             |
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  2.1
  layer (models, ORM)                |
               Severity:  Release    |       Keywords:
  blocker                            |
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 `.all()` for related manager always (at least in my case) returns empty
 list. This seems an big error or at least a wrongly documented or
 undocumented behavior.

 It is demonstrated by the attached small test project.

 The most relevant code fragment is:
 ```
         holder = Holder.objects.get(pk=1)
         self.assertEqual(holder.items.all().count(), 2, 'Correct objects
 count')
 ```

 Django 2.1.7

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30270>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.51277ef376dc0eec9cb85c9ff9b470c2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to