Description
django-taggit ============= .. image:: https://jazzband.co/static/img/badge.svg :target: https://jazzband.co/ :alt: Jazzband .. image:: https://img.shields.io/pypi/pyversions/django-taggit.svg :target: https://pypi.org/project/django-taggit/ :alt: Supported Python versions .. image:: https://img.shields.io/pypi/djversions/django-taggit.svg :target: https://pypi.org/project/django-taggit/ :alt: Supported Django versions .. image:: https://github.com/jazzband/django-taggit/workflows/Test/badge.svg :target: https://github.com/jazzband/django-taggit/actions :alt: GitHub Actions .. image:: https://codecov.io/gh/jazzband/django-taggit/coverage.svg?branch=master :target: https://codecov.io/gh/jazzband/django-taggit?branch=master This is a `Jazzband <https://jazzband.co>`_ project. By contributing you agree to abide by the `Contributor Code of Conduct <https://jazzband.co/about/conduct>`_ and follow the `guidelines <https://jazzband.co/about/guidelines>`_. ``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: .. code:: python 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: .. code:: pycon >>> 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 3.2 or greater. For more info check out the `documentation <https://django-taggit.readthedocs.io/>`_. And for questions about usage or development you can create an issue on Github (if your question is about usage please add the `question` tag).
Release History
| Version | Changes | Urgency | Date |
|---|---|---|---|
| 6.1.0 | Imported from PyPI (6.1.0) | Low | 4/21/2026 |
| 6.0.0 | Tag 6.0.0 | Low | 7/29/2024 |
| 5.0.1 | Tag 5.0.1 | Low | 10/26/2023 |
| 5.0.0 | Tag 5.0.0 | Low | 10/24/2023 |
| 4.0.0 | Tag 4.0.0 | Low | 5/4/2023 |
| 3.1.0 | Tag 3.1.0 | Low | 11/18/2022 |
| 3.0.0 | Tag 3.0.0 | Low | 5/2/2022 |
| 2.1.0 | Tag 2.1.0 | Low | 1/24/2022 |
| 2.0.0 | Tag 2.0.0 | Low | 11/16/2021 |
| 1.5.1 | Tag 1.5.1 | Low | 7/5/2021 |
| 1.5.0 | Tag 1.5.0 | Low | 6/30/2021 |
| 1.4.0 | Tag 1.4.0 | Low | 4/19/2021 |
| 1.3.0 | Tag 1.3.0 | Low | 5/22/2020 |
| 1.2.0 | Tag 1.2.0 | Low | 12/4/2019 |
| 1.1.0 | Tag 1.1.0 | Low | 3/22/2019 |
| 1.0.0 | Tag 1.0.0 | Low | 3/17/2019 |
| 0.24.0 | Tag 0.24.0 | Low | 2/20/2019 |
| 0.23.0 | Tag 0.23.0 | Low | 8/8/2018 |
| v0.10 | Tag v0.10 | Low | 8/17/2013 |
| v0.10a1 | Tag v0.10a1 | Low | 3/25/2013 |
