Skip to main content

django-taggit

Jazzband Supported Python versions Supported Django versions GitHub Actions https://codecov.io/gh/jazzband/django-taggit/branch/master/graph/badge.svg?token=eaixNiyRk2

This is a Jazzband project. By contributing you agree to abide by the Contributor Code of Conduct and follow the 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:

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 5.2 or greater.

For more info check out the documentation. 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).

Metadata

Release files for django-taggit 7.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-taggit 7.0.0
File Size Uploaded Provenance Actions
django_taggit-7.0.0.tar.gz 39.1 kB Without provenance Details for django_taggit-7.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-taggit 7.0.0
File Interpreter ABI Platform Actions
django_taggit-7.0.0-py3-none-any.whl Python 3 none any Details for django_taggit-7.0.0-py3-none-any.whl

Total release size: 105.6 kB

Release files / django_taggit-7.0.0.tar.gz

Download URL django_taggit-7.0.0.tar.gz
Size 39.1 kB
Tags Source
SHA-256 checksum
How to use checksums
338b7af0f3417f079a2a4346da1677a1e0d4ca0aba1b04a4e12c9e3a85450a7a
BLAKE2b-256 checksum
How to use checksums
e5a940c57c5fb8fe20f9982f07d0fd85b5da9fd852324be79307f560362fea56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / django_taggit-7.0.0-py3-none-any.whl

Download URL django_taggit-7.0.0-py3-none-any.whl
Size 66.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
191dd89528f40a6109d1922f197885f25db3cd05b4280b6ec2a1e8e790c295b8
BLAKE2b-256 checksum
How to use checksums
eb5dba6dbb7dd576db6eee402bc74d1ff263812b19b06af48414dc8ca8d39c81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for django-taggit 7.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

7.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page