Annotated queryset + Prefetch object

2017-03-04 Thread Jose Kilo
Hi all, I'm trying to use an annotated queryset inside a Prefetch object. For some reason I'm not getting the expected result. This is a simplified version of my models and query. class User(models.Model): following = models.ManyToManyField('User', related_name='followers', through='Follo

Re: Annotated queryset + Prefetch object

2017-04-19 Thread Jose Kilo
efetches > doing > weird things when the same model is referenced through different > relations[0]. > > Simon > > [0] https://code.djangoproject.com/ticket/26318 > > Le samedi 4 mars 2017 13:36:20 UTC-5, Jose Kilo a écrit : >> >> Hi all, >> >> I