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

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

Uploaded Python 3

Supported by

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