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
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 django_get_once-1.0.0-py3-none-any.whl.
File metadata
- Download URL: django_get_once-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe36b4039d80bb4d807045880f986d43bb62a315bbefbde416abd336ccaca6e6
|
|
| MD5 |
2cbe5abfe9d0768ad218f201d21a96fd
|
|
| BLAKE2b-256 |
4162d03c6409d1624b1af01ecec3f718b305643e226be50405e8968775352102
|