Hello, I have my models like this... class Report(models.Model): title = models.CharField(max_length=50, blank=True) users = models.ManyToManyField(User, symmetrical=True) categories = models.ManyToManyField("Category", through='ReportDetail', \ symmetrical=True)
I would like to get all reports from 1 user, but that only contain that user I was looking for ne, not equals, but its removed, I cant do it with the exclude: I want to make something like this user = User.objects.get(pk=1) user_reports = user.report_set.exclude(users__id__NOTEQUAL = user.id) how can I achieve this? Thanks in advance Luis Montiel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---