A Django Rest ViewSet Mixin that only lets you get objects once.
Project description
Django Get Once
A Django Rest Framework Mixin for viewsets that only allows you to retrieve an object exactly once.
Installation
From PYPi using pip
:
pip install django-get-once
Usage
Can only be used with ViewSets:
from get_once import GetOnceMixin
from rest_framework.viewset import GenericViewSet
class MyViewSet(GetOnceMixin, GenericViewSet):
[...]
Licence
This package is distributed under MIT Licence.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for django_get_once-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe36b4039d80bb4d807045880f986d43bb62a315bbefbde416abd336ccaca6e6 |
|
MD5 | 2cbe5abfe9d0768ad218f201d21a96fd |
|
BLAKE2b-256 | 4162d03c6409d1624b1af01ecec3f718b305643e226be50405e8968775352102 |