Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make case-insensitive tags with django-taggit

I added tags = TaggableManager(blank=True) to my models, but I want my tags to be case-insensitive. I saw some snippets of work arounds for this and wanted to ask if there is an easy way to do it? If I have to override some methods from the TaggableManager, please advise how can I do that?

Thanks in advance, Arshavski Alexander.

like image 244
alexarsh Avatar asked Mar 14 '11 14:03

alexarsh


1 Answers

I am sure you have figured out solution by now :) Though I will put the answer as someone might hit this while searching -

Use https://github.com/shacker/django-taggit version of django-taggit.

It allows to configure TAGGIT_FORCE_LOWERCASE = True

It also allows you to filter stop words.

like image 119
Mutant Avatar answered Sep 28 '22 08:09

Mutant