Metadata-Version: 2.1
Name: django-get-once
Version: 1.0.0
Summary: A Django Rest ViewSet Mixin that only lets you get objects once.
Author-email: Ferran Jovell <ferran.jovell+gh@gmail.com>
Project-URL: homepage, https://github.com/mrswats/django-get-once
Project-URL: Bug Tracker, https://github.com/mrswats/django-get-once/issues
Keywords: django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENCE
Requires-Dist: Django (>=3.2.14)
Requires-Dist: djangorestframework (>=3.11.0)
Provides-Extra: test
Requires-Dist: pre-commit ; extra == 'test'
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: pytest-django ; extra == 'test'

# 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:

```python
from get_once import GetOnceMixin
from rest_framework.viewset import GenericViewSet

class MyViewSet(GetOnceMixin, GenericViewSet):
    [...]
```

## Licence

This package is distributed under [MIT Licence](./LICENCE).
