Skip to main content

Add tags to any model in Django via ModelViewSet

Project description

Django Flexi Tag

Build status Documentation status PyPI PyPI - Django version PyPI - Python version PyPI - License

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):
    ...

Download files

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

Source Distribution

dj-flexi-tag-1.0.4.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dj_flexi_tag-1.0.4-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file dj-flexi-tag-1.0.4.tar.gz.

File metadata

  • Download URL: dj-flexi-tag-1.0.4.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

Hashes for dj-flexi-tag-1.0.4.tar.gz
Algorithm Hash digest
SHA256 2bd87d21cb2b043b6c0c2a83b7dceb6a864489ac1ab19c740030c37fc006315a
MD5 8e3859fcb7e7e6f0a0a9b86828768a90
BLAKE2b-256 cf002d99b89a438da31def9bbf4564f5cf4889e7f6922c5ee0b8540ed4cd59a3

See more details on using hashes here.

File details

Details for the file dj_flexi_tag-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: dj_flexi_tag-1.0.4-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

Hashes for dj_flexi_tag-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a8c693a853d596cc2c6f025e25fd71d416d14329ff5d239b785e35e25f522101
MD5 c86f0b691e6fde1b20e38dc1138a98ec
BLAKE2b-256 b2672ae92b40f54ebfb7f671067e7ad1b702ccf765ed0336e4f137112a8e313a

See more details on using hashes here.

Supported by

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