Skip to main content

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


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

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

django_get_once-1.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file django_get_once-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_get_once-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe36b4039d80bb4d807045880f986d43bb62a315bbefbde416abd336ccaca6e6
MD5 2cbe5abfe9d0768ad218f201d21a96fd
BLAKE2b-256 4162d03c6409d1624b1af01ecec3f718b305643e226be50405e8968775352102

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