Changes between Initial Version and Version 1 of Ticket #31401


Ignore:
Timestamp:
Mar 25, 2020, 2:03:09 PM (5 years ago)
Author:
Mariusz Felisiak
Comment:

Duplicate of #21703 ( that was fixed in Django 3.0).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31401

    • Property Resolutionduplicate
    • Property Status newclosed
    • Property Summary Exclude on M2M with F-function not workingExclude on M2M with F-function not working.
  • Ticket #31401 – Description

    initial v1  
    11I have the following models:
    2 
     2{{{
    33    class Activity(models.Model):
    44       user = models.ForeignKey(User, related_name='activities')
     
    88    class Project(models.Model):
    99       assignees = models.ManyToManyField(User, related_name='projects')
    10 
     10}}}
    1111Now I want to query for all the activities which belog to a user which is NOT in the projects assignees.
    1212
Back to Top