I have a model with field:
class Product(models.Model):
subproducts = models.ManyToManyField("self", blank=True)
I need to overwrite admin's field queryset, to display only that objects
that don't belong to any m2m relation. I have no idea how to get them.
So if I have: product1, product2, product3, product4.
product1 contains in subproducts: product2
I need a query that will get, in that situation, product3 and product4
Any idea how to get that?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.