Changes between Initial Version and Version 1 of Ticket #32414, comment 2


Ignore:
Timestamp:
Feb 3, 2021, 11:05:58 PM (4 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32414, comment 2

    initial v1  
    1 Looks like you either want `attendees=F('profile')` or `profile__in=CalendarEvent.attendees.through.objects.filter(calendarevent=OuterRef('pk'))`.
     1Looks like you either want `attendees=F('profile')` or `profile__in=CalendarEvent.attendees.through.objects.filter(calendarevent=OuterRef('pk')).values('profile')`.
    22
    33I guess we could raise a Python level error or adjust `RelatedIn.get_prep_lookup` special case `F` referring to many-to-many as well.
Back to Top