Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

django-tag-fields

Project Status: Active - The project has reached a stable, usable state and is being actively developed. Supported Python versions Supported Django versions GitHub Actions https://codecov.io/gh/imAsparky/django-tag-fields/branch/main/graph/badge.svg?token=6TPEAAOUUF Documentation Status

This is a clone of Jazzband django-taggit project.

By contributing you agree to abide by the Contributor Code of Conduct.

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

from django.db import models

from tag_fields.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-tag-fields requires Django 3.2 or greater.

For more info check out the documentation.

For questions about usage or development you can create an issue on Github (if your question is about usage please add the question label).

Metadata

Release files for django-tag-fields 4.1.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-tag-fields 4.1.0
File Size Uploaded Provenance Actions
django-tag-fields-4.1.0.tar.gz 73.6 kB Without provenance Details for django-tag-fields-4.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-tag-fields 4.1.0
File Interpreter ABI Platform Actions
django_tag_fields-4.1.0-py3-none-any.whl Python 3 none any Details for django_tag_fields-4.1.0-py3-none-any.whl

Total release size: 133.5 kB

Release files / django-tag-fields-4.1.0.tar.gz

Download URL django-tag-fields-4.1.0.tar.gz
Size 73.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dd7215be50d42ce1ce71e1cb260efdf341f077330c7b5e17d94f53ec61720118
BLAKE2b-256 checksum
How to use checksums
f9c559a97f21274f02911a7811fc7ee29caa99562c9f4f723a7d28265b3e4e8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.30.0 requests-toolbelt/1.0.0 urllib3/2.0.2 tqdm/4.65.0 importlib-metadata/6.6.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11

Release files / django_tag_fields-4.1.0-py3-none-any.whl

Download URL django_tag_fields-4.1.0-py3-none-any.whl
Size 59.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f7307739cc71997008567275c993d20eef8d04a1f63b8e07efeb60c0c100bf3
BLAKE2b-256 checksum
How to use checksums
f931fd0c7c785a71acd16c55597c986b66155e9f34386f7251783d645dc36d88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.30.0 requests-toolbelt/1.0.0 urllib3/2.0.2 tqdm/4.65.0 importlib-metadata/6.6.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11

Security for django-tag-fields 4.1.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.

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