Simple url-paths based api to add and remove tags.
Project description
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')), ]
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | abfd1d7043fd40aa875c683e2c776daa7fce2182f36ca886c8e4d117e1d9bf9c |
|
MD5 | d8195e7ed3c9900314189991de4b5a0c |
|
BLAKE2b-256 | d5c9faf6ca5bf1202d16357ece217babfb2098aac3008e9507f6d8b5fdf79e1a |
File details
Details for the file django_taggit_api-1.0-py3-none-any.whl
.
File metadata
- Download URL: django_taggit_api-1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9443e242a40f01e1378f1c97f4343e8214f376c6a38b63217ff7fe1fac0a4bb6 |
|
MD5 | da20c53ee6b3352a5aaae52788732fe0 |
|
BLAKE2b-256 | 65185cb900bc2df2c99688aef4f6cf657af2d9eb16dbea32f61ceac8e52a0754 |