djangosnippets.org: Latest snippets posted by apollo13https://djangosnippets.org/users/apollo13/2007-11-12T15:06:23.778072-06:00apollo13Manager for something like __inall
2007-11-12T15:06:23.778072-06:00apollo13https://djangosnippets.org/snippets/462/<p>Provides the method from_related_ids, which lets you
select some objects by providing a list of related ids
(The huge difference to __in is that the objects have
to match al of the ids, not only one)</p>
<p>Model Example::</p>
<pre><code>class Article(models.Model):
text = models.TextField()
tags = ManyToManyField('Tag')
objects = AllInManager()
</code></pre>
<p>Usage:: …</p>
Freely redistributable