djangosnippets.org: Latest snippets tagged with 'chainable'https://djangosnippets.org/tags/chainable/2010-02-25T03:21:06.838058-06:00TaggedManager and TaggedQuerySet with chainable tagged() methods implemented with django-tagging
2010-02-25T03:21:06.838058-06:00fish2000https://djangosnippets.org/snippets/1942/<p>The popular <a href="http://code.google.com/p/django-tagging/">django-tagging</a> app has, in its implementation and semantics, a highly usable and transparent elegance -- but then you have to call methods on a Tag instances' items collection. These classes let you inline the tag name in the chain of queryset filter methods instead.</p>
<p>TO USE:</p>
<pre><code>### models.py …</code></pre>
Freely redistributable