kitaindia / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
0 stars 0 forks source link

Add support of "filters" parameter in related_for_model() function #117

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
usage_for_model(...) supports filters parameter. I use it in case of
building tag cloud for some model instances subset.

And also I need to build tag cloud of related tags for these instances
subset. So I use related_for_model(...), but it has no limit for model
instances. And I can get tags which are not used in my subset. 

Could you add support of "filters" parameter to related_for_model(...) as
it is done for usage_for_model(...)?

Original issue reported on code.google.com by n.le...@gmail.com on 23 Apr 2008 at 11:05

GoogleCodeExporter commented 8 years ago
I made this feature myself. 

Also I added support for limitation tag cloud size. E.g. - this is needed when 
I want
to see tag cloud with 20 most popular tags.

Do you need this functionality?

(my app version is little modified because of slug usage and other cms 
specifics, so
I can't do patch quickly)

Original comment by n.le...@gmail.com on 16 Jun 2008 at 8:34