Skip to main content
https://travis-ci.org/alex/django-taggit.svg?branch=master https://codecov.io/gh/alex/django-taggit/coverage.svg?branch=master

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

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

Metadata

Release files for django-taggit-tronc 0.21.2

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-tronc 0.21.2
File Size Uploaded Provenance Actions
django-taggit-tronc-0.21.2.tar.gz 44.1 kB Without provenance Details for django-taggit-tronc-0.21.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-taggit-tronc 0.21.2
File Interpreter ABI Platform Actions
django_taggit_tronc-0.21.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for django_taggit_tronc-0.21.2-py2.py3-none-any.whl

Total release size: 90.2 kB

Release files / django-taggit-tronc-0.21.2.tar.gz

Download URL django-taggit-tronc-0.21.2.tar.gz
Size 44.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ba9b08be491338ebc047d0c018547c4cc30907258cb4a6f6379f7db99757597d
BLAKE2b-256 checksum
How to use checksums
4697ec4ffef2547e7f94dd77191a0a25339e3f1a05167cf953656a69ef564091
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_taggit_tronc-0.21.2-py2.py3-none-any.whl

Download URL django_taggit_tronc-0.21.2-py2.py3-none-any.whl
Size 46.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3cfbabb2bfab3dea4a8908dc04be878fc4730313046f57083e2e92a3735dd22f
BLAKE2b-256 checksum
How to use checksums
633392cee7c7448c5e5713b52eb72454bb94694cc1cbe910cdbdc6767654eb78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-taggit-tronc 0.21.2

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

0.21.2 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