Changes between Initial Version and Version 1 of Ticket #31401
- Timestamp:
- Mar 25, 2020, 2:03:09 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31401
- Property Resolution → duplicate
- Property Status new → closed
- Property Summary Exclude on M2M with F-function not working → Exclude on M2M with F-function not working.
-
Ticket #31401 – Description
initial v1 1 1 I have the following models: 2 2 {{{ 3 3 class Activity(models.Model): 4 4 user = models.ForeignKey(User, related_name='activities') … … 8 8 class Project(models.Model): 9 9 assignees = models.ManyToManyField(User, related_name='projects') 10 10 }}} 11 11 Now I want to query for all the activities which belog to a user which is NOT in the projects assignees. 12 12