Skip to main content

Simple url-paths based api to add and remove tags.

Project description

python: 3.8, 3.9, 3.10,3.11 django: 3.2, 4.0, 4.1, 4.2, 5.0, 5.1 Run tests for django-taggit-api Coveralls

Description

This application provides a simple url-path based api for django-taggit to add or remove tags.

The api is best described by the url-patterns itself:

Remove a tag from all objects of a model using the tag-id or -slug:

'remove-tag/<int:tag_id>/from/<slug:app_label>/<slug:model_name>/'
'remove-tag/<slug:tag_slug>/from/<slug:app_label>/<slug:model_name>/'

Remove a tag from a single object using the tag-id or -slug:

'remove-tag/<int:tag_id>/from/<slug:app_label>/<slug:model_name>/<int:obj_id>/'
'remove-tag/<slug:tag_slug>/from/<slug:app_label>/<slug:model_name>/<int:obj_id>/'

Add a tag to an object using the tag-id or -slug:

'add-tag/<int:tag_id>/to/<slug:app_label>/<slug:model_name>/<int:obj_id>/'
'add-tag/<slug:tag_slug>/to/<slug:app_label>/<slug:model_name>/<int:obj_id>/'

Installation

Install from pypi.org:

pip install django-taggit-api

Setup

Add more_admin_filters to your installed apps:

INSTALLED_APPS = [
    'taggit_api',
    ...
]

Extend your url_patterns in urls.py:

urlpatterns = [
    ...
    url(r'^', include('taggit_api.urls')),
]

Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_taggit_api-1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

django_taggit_api-1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file django_taggit_api-1.0.tar.gz.

File metadata

  • Download URL: django_taggit_api-1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for django_taggit_api-1.0.tar.gz
Algorithm Hash digest
SHA256 abfd1d7043fd40aa875c683e2c776daa7fce2182f36ca886c8e4d117e1d9bf9c
MD5 d8195e7ed3c9900314189991de4b5a0c
BLAKE2b-256 d5c9faf6ca5bf1202d16357ece217babfb2098aac3008e9507f6d8b5fdf79e1a

See more details on using hashes here.

File details

Details for the file django_taggit_api-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_taggit_api-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9443e242a40f01e1378f1c97f4343e8214f376c6a38b63217ff7fe1fac0a4bb6
MD5 da20c53ee6b3352a5aaae52788732fe0
BLAKE2b-256 65185cb900bc2df2c99688aef4f6cf657af2d9eb16dbea32f61ceac8e52a0754

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page