Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Added names method to _TaggableManager #100

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

benbacardi commented Apr 25, 2012

The method returns a (generator) list of just the tag names, so you can do things like this:

if "my_tag" in obj.tags.names():

Etc

This is much easier than other methods.

@xordoquy xordoquy referenced this pull request Mar 13, 2013

Closed

Roadmap for django-taggit #112

Contributor

apollo13 commented Mar 25, 2013

Please add tests and docs, also the function should just use .values_list('name', flat=True)

@benbacardi benbacardi closed this Jun 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment