django-taggit 0.12.2

django-taggit is a reusable Django application for simple tagging.

django-taggit a simpler approach to tagging with Django. Add "taggit" to your INSTALLED_APPS then just add a TaggableManager to your model and go:

from django.db import models

from taggit.managers import TaggableManager

class Food(models.Model):
    # ... fields here

    tags = TaggableManager()

Then you can use the API like so:

>>> apple = Food.objects.create(name="apple")
>>> apple.tags.add("red", "green", "delicious")
>>> apple.tags.all()
[<Tag: red>, <Tag: green>, <Tag: delicious>]
>>> apple.tags.remove("green")
>>> apple.tags.all()
[<Tag: red>, <Tag: delicious>]
>>> Food.objects.filter(tags__name__in=["red"])
[<Food: apple>, <Food: cherry>]

Tags will show up for you automatically in forms and the admin.

django-taggit requires Django 1.4.5 or greater.

For more info check out the documentation. And for questions about usage or development you can contact the mailinglist.

BSD

Author

Alex Gaynor

Pip

django-taggit==0.12.2

Classifiers

  • Programming Language :: Python :: 3.4
  • Programming Language :: Python :: 3.3
  • Programming Language :: Python :: 3.2
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 2.6
  • Programming Language :: Python
  • Operating System :: OS Independent
  • License :: OSI Approved :: BSD License
  • Intended Audience :: Developers
  • Framework :: Django
  • Environment :: Web Environment
  • Development Status :: 5 - Production/Stable
File Type Python Version Uploaded On Downloads
django_taggit-0.12.2-py2.py3-none-any.whl Wheel 2.7 Sept. 21, 2014 6,427
django-taggit-0.12.2.tar.gz Source Sept. 21, 2014 3,417
Version Release Date
0.12.2 Sept. 21, 2014
0.12.1 Aug. 10, 2014
0.12 April 20, 2014
0.11.2 Dec. 13, 2013
0.11.1 Nov. 25, 2013
0.11 Nov. 25, 2013
0.10 Aug. 17, 2013
0.10a1 March 25, 2013
0.9.3 March 15, 2011
0.9.2 Jan. 17, 2011
0.9.1 Sept. 25, 2010
0.9.0 Sept. 21, 2010
0.8.0 June 21, 2010
0.6.0 May 8, 2010
0.4.0 April 25, 2010
0.2.0 March 21, 2010
Date Package Version Action
Nov. 4, 2014, 1:55 p.m. django-taggit 0.4.0 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.12 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.10 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.11 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.12.1 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.12.2 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.8.0 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.11.2 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.11.1 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.6.0 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.9.1 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.2.0 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.9.3 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.9.2 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.10a1 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit 0.9.0 Release Created
Nov. 4, 2014, 1:55 p.m. django-taggit Package Created