Add tags to any model in Django via ModelViewSet
Project description
Django Flexi Tag
Flexi tag informs subscribed users via an URL when a specific event occurs.
Installation
Installation using pip:
pip install dj-flexi-tag
flexi-tag package has to be added to INSTALLED_APPS and migrate command has to be run.
INSTALLED_APPS = (
# other apps here...
'flexi_tag',
)
After that, need to add to show Tag and TaggedItem in ModelViewSet.
urlpatterns = [
...
re_path(
r'^v1/whisperer/',
include('flexi_tag.urls', namespace='flexi_tag')
),
...
]
So, Implementation to the desired ModelViewSet is done as follows;
from rest_framework import viewsets
from flexi_tag.utils.viewset import TaggableViewSetMixin
class DummyTaggableViewSet(viewsets.ModelViewSet, TaggableViewSetMixin):
...
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dj-flexi-tag-1.0.2.tar.gz.
File metadata
- Download URL: dj-flexi-tag-1.0.2.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc1962370d604757367383501229f6d4c6437ea202039a195b34457c3099e451
|
|
| MD5 |
0008bea441d353c5cae192e89d084588
|
|
| BLAKE2b-256 |
3de8be1a5962dafbdbfba0fb5f7d27f8029e8371513471c5a2a5f7f74700bcfb
|
File details
Details for the file dj_flexi_tag-1.0.2-py3-none-any.whl.
File metadata
- Download URL: dj_flexi_tag-1.0.2-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
135ada567f987909257f2b7bd1821ab2d92ff8d3712089fa166d1ffa3facfaa9
|
|
| MD5 |
72837619e41a0db6fe7ca2988fedeb43
|
|
| BLAKE2b-256 |
4dbe32ba1f561eefea6150792e6953e65fa759c2acbd4f474e90b56cc6421995
|