[![Package Index](https://badge.fury.io/py/drf-sideloading.svg)](https://badge.fury.io/py/drf-sideloading)
[![Build Status](https://travis-ci.org/namespace-ee/django-rest-framework-sideloading.svg?branch=master)](https://travis-ci.org/namespace-ee/django-rest-framework-sideloading)
[![Code Coverage](https://codecov.io/gh/namespace-ee/django-rest-framework-sideloading/branch/master/graph/badge.svg)](https://codecov.io/gh/namespace-ee/django-rest-framework-sideloading)
[![License is MIT](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/namespace-ee/drf-sideloading/blob/master/LICENSE)
[![Code style Black](https://img.shields.io/badge/code%20style-black-000000.svg?maxAge=2592000)](https://github.com/ambv/black)
:warning: Note that there are major API changes since version 0.1.1 that have to be taken into account when upgrading!
:warning: Python 2 and Django 1.11 are no longer supported from version 1.4.0!
# Django rest framework sideloading
DRF-sideloading is an extension to provide side-loading functionality of related resources. Side-loading allows related resources to be optionally included in a single API response minimizing requests to the API.
## Quickstart
1. Install drf-sideloading:
```shell
pip install drf-sideloading
```
2. Import `SideloadableRelationsMixin`:
```python
from drf_sideloading.mixins import SideloadableRelationsMixin
```
3. Write your SideLoadableSerializer:
You need to define the **primary** serializer in the Meta data and can define prefetching rules.
Also notice the **many=True** on the sideloadable relationships.
```python
from drf_sideloading.serializers import SideLoadableSerializer
class ProductSideloadableSerializer(SideLoadableSerializer):
products = ProductSerializer(many=True)
categories = CategorySerializer(source="category", many=True)
primary_suppliers = SupplierSerializer(source="primary_supplier", many=True)
secondary_suppliers = SupplierSerializer(many=True)
suppliers = SupplierSerializer(many=True)
partners = PartnerSerializer(many=True)
class Meta:
primary = "products"
prefetches = {
"categories": "category",
"primary_suppliers": "primary_supplier",
"secondary_suppliers": "secondary_suppliers",
"suppliers": {
"primary_suppliers": "primary_supplier",
"secondary_suppliers": "secondary_suppliers",
},
"partners": "partners",
}
```
4. Prefetches
For fields where the source is provided or where the source matches the field name, prefetches are not strictly required
Multiple prefetches can be added to a single sideloadable field, but when using Prefetch object check that they don't clash with prefetches made in the get_queryset() method
```python
from django.db.models import Prefetch
prefetches = {
"categories": "category",
"primary_suppliers": ["primary_supplier", "primary_supplier__some_related_object"],
"secondary_suppliers": Prefetch(
lookup="secondary_suppliers",
queryset=Supplier.objects.prefetch_related("some_related_object")
),
"partners": Prefetch(
lookup="partners",
queryset=Partner.objects.select_related("some_related_object")
)
}
```
Multiple sources can be added to a field using a dict.
Each key is a source_key that can be used to filter what sources should be sideloaded.
The values set the source and prefetches for this source.
Note that this prefetch reuses `primary_supplier` and `secondary_suppliers` if suppliers and primary_supplier or secondary_suppliers are sideloaded
```python
prefetches = {
"primary_suppliers": "primary_supplier",
"secondary_suppliers": "secondary_suppliers",
"suppliers": {
"primary_suppliers": "primary_supplier",
"secondary_suppliers": "secondary_suppliers"
}
}
```
Usage of Prefetch() objects is supported.
Prefetch() objects can be used to filter a subset of some relations or just to prefetch or select complicated related objects
In case there are prefetch conflicts, `to_attr` can be set but be aware that this prefetch will now be a duplicate of similar prefetches.
prefetch conflicts can also come from prefetched made in the ViewSet.get_queryset() method.
Note that this prefetch noes not reuse `primary_supplier` and `secondary_suppliers` if **suppliers** and **primary_supplier** or **secondary_suppliers** are sideloaded at the same time.
```python
from django.db.models import Prefetch
prefetches = {
"categories": "category",
"primary_suppliers": "primary_supplier",
"secondary_suppliers": "secondary_suppliers",
"suppliers": {
"primary_suppliers": Prefetch(
lookup="secondary_suppliers",
queryset=Supplier.objects.select_related("some_related_object"),
to_attr="secondary_suppliers_with_preselected_relation"
),
"secondary_suppliers": Prefetch(
lookup="secondary_suppliers",
queryset=Supplier.objects.filter(created_at__gt=pendulum.now().subtract(days=10)).order_by("created_at"),
to_attr="latest_secondary_suppliers"
)
},
}
```
5. Configure sideloading in ViewSet:
Include **SideloadableRelationsMixin** mixin in ViewSet and define **sideloading_serializer_class** as shown in example below.
Everything else stays just like a regular ViewSet.
Since version 2.0.0 there are 3 new methods that allow to overwrite the serializer used based on the request version for example
Since version 2.1.0 an additional method was added that allow to add request dependent filters to sideloaded relations
```python
from drf_sideloading.mixins import SideloadableRelationsMixin
class ProductViewSet(SideloadableRelationsMixin, viewsets.ModelViewSet):
"""
A simple ViewSet for viewing and editing products.
"""
queryset = Product.objects.all()
serializer_class = ProductSerializer
sideloading_serializer_class = ProductSideloadableSerializer
def get_queryset(self):
# Add prefetches for the viewset as normal
return super().get_queryset().prefetch_related("created_by")
def get_sideloading_serializer_class(self, request=None):
# use a different sideloadable serializer for older version
if self.request.version < "1.0.0":
return OldProductSideloadableSerializer
return super().get_sideloading_serializer_class(request=request)
def get_sideloading_serializer(self, *args, **kwargs):
# if modifications are required to the serializer initialization this method can be used.
return super().get_sideloading_serializer(*args, **kwargs)
def get_sideloading_serializer_context(self):
# Extra context provided to the serializer class.
return {"request": self.request, "format": self.format_kwarg, "view": self}
def add_sideloading_prefetch_filter(self, source, queryset, request):
#
if source == "model1__relation1":
return queryset.filter(is_active=True), True
if hasattr(queryset, "readable"):
return queryset.readable(user=request.user), True
return queryset, False
```
6. Enjoy your API with sideloading support
Example request and response when fetching all possible values
```http
GET /api/products/?sideload=categories,partners,primary_suppliers,secondary_suppliers,suppliers,products
```
```json
{
"products": [
{
"id": 1,
"name": "Product 1",
"category": 1,
"primary_supplier": 1,
"secondary_suppliers": [2, 3],
"partners": [1, 2, 3]
}
],
"categories": [
{
"id": 1,
"name": "Category1"
}
],
"primary_suppliers": [
{
"id": 1,
"name": "Supplier1"
}
],
"secondary_suppliers": [
{
"id": 2,
"name": "Supplier2"
},
{
"id": 3,
"name": "Supplier3"
}
],
"suppliers": [
{
"id": 1,
"name": "Supplier1"
},
{
"id": 2,
"name": "Supplier2"
},
{
"id": 3,
"name": "Supplier3"
}
],
"partners": [
{
"id": 1,
"name": "Partner1"
},
{
"id": 2,
"name": "Partner1"
},
{
"id": 3,
"name": "Partner3"
}
]
}
```
The user can also select what sources to load to Multi source fields.
Leaving the selections empty or omitting the brackets will load all the prefetched sources.
Example:
```http
GET /api/products/?sideload=suppliers[primary_suppliers]
```
```json
{
"products": [
{
"id": 1,
"name": "Product 1",
"category": 1,
"primary_supplier": 1,
"secondary_suppliers": [2, 3],
"partners": [1, 2, 3]
}
],
"suppliers": [
{
"id": 1,
"name": "Supplier1"
}
]
}
```
## Example Project
Directory `example` contains an example project using django rest framework sideloading library. You can set it up and run it locally using following commands:
```shell
cd example
sh scripts/devsetup.sh
sh scripts/dev.sh
```
## Contributing
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
#### Setup for contribution
```shell
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_dev.txt
```
### Test
```shell
$ make test
```
#### Run tests with environment matrix
```shell
$ make tox
```
#### Run tests with specific environment
```shell
$ tox --listenvs
py37-django22-drf39
py38-django31-drf311
py39-django32-drf312
# ...
$ tox -e py39-django32-drf312
```
#### Test coverage
```shell
$ make coverage
```
Use [pyenv](https://github.com/pyenv/pyenv) for testing using different python versions locally.
## License
[MIT](https://github.com/namespace-ee/drf-sideloading/blob/master/LICENSE)
## Credits
- [Demur Nodia](https://github.com/demonno)
- [Tõnis Väin](https://github.com/tonisvain)
- [Madis Väin](https://github.com/madisvain)
- [Lenno Nagel](https://github.com/lnagel)
# Changelog
## 2.2.2 (2024-10-28)
- fix ReverseManyToOne reverse prefetch model selection
## 2.2.1 (2024-10-28)
- fix ReverseManyToOne through prefetch model selection
## 2.2.0 (2024-10-22)
- Support for Django 5
- Django supported versions `5.0 -> 5.1`
- Python supported versions `3.10 -> 3.12`
- Django-rest-framework supported versions. `3.15`
- Add support for request dependant prefetch filtering
- refactored code for better readability
- prefetches from view are also used when determining sideloading prefetches
- Add support for drf_spectacular documentation
- Add prefetch related support for multi source fields
## 2.1.0 (2024-01-26)
- Support for Django 4
- Django supported versions `4.0 -> 4.2`
- Python supported versions `3.10 -> 3.11`
- Django-rest-framework supported versions. `3.13 -> 3.14`
- Fix issue with prefetch ordering
## 2.0.1 (2021-12-16)
- Ensure that only allowed methods are sideloaded
## 2.0.0 (2021-12-10)
Major refactoring to allow for multi source fields.
- Add support for multi source fields
- Add support for detail view sideloading
- Dropped formless BrowsableAPIRenderer enforcement
- Raises error in case invalid fields are requested for sideloading
## 1.4.2 (2021-04-12)
- Add support for lists in filter_related_objects
## 1.4.1 (2021-04-09)
- Fix sideloadable prefetches
## 1.4.0 (2021-04-07)
- Python supported versions `3.6 -> 3.9`
- Django supported versions `2.2`, `3.1`, `3.2`
- Django-rest-framework supported versions. `3.9 -> 3.12`
## 1.3.1 (2021-04-07)
Added support for `django.db.models.Prefetch`
## 1.3.0 (2019-04-23)
Fix empty related fields sideloading bug
- Support for Django 2.2
## 1.2.0 (2018-10-29)
Completely refactored sideloading configuration via a custom serializer.
- Support for Django 2.1
- Support for Django-rest-framework 3.9
## 0.1.10 (2017-07-20)
- Support for Django 2.0
## 0.1.8 (2017-07-20)
- change sideloadable_relations dict
- always required to define 'serializer'
- key is referenced to url and serialized in as rendered json
- add `source` which specifies original model field name
## 0.1.0 (2017-07-20)
- First release on PyPI.
Raw data
{
"_id": null,
"home_page": "https://github.com/namespace-ee/drf-sideloading",
"name": "drf-sideloading",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "drf-sideloading",
"author": "Namespace O\u00dc",
"author_email": "info@namespace.ee",
"download_url": "https://files.pythonhosted.org/packages/bc/52/eaf93b7bd23f3f735d8496a6728e4248d8d0df4bdcf5b0a09dbdb4c27789/drf_sideloading-2.2.2.tar.gz",
"platform": null,
"description": "[![Package Index](https://badge.fury.io/py/drf-sideloading.svg)](https://badge.fury.io/py/drf-sideloading)\n[![Build Status](https://travis-ci.org/namespace-ee/django-rest-framework-sideloading.svg?branch=master)](https://travis-ci.org/namespace-ee/django-rest-framework-sideloading)\n[![Code Coverage](https://codecov.io/gh/namespace-ee/django-rest-framework-sideloading/branch/master/graph/badge.svg)](https://codecov.io/gh/namespace-ee/django-rest-framework-sideloading)\n[![License is MIT](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/namespace-ee/drf-sideloading/blob/master/LICENSE)\n[![Code style Black](https://img.shields.io/badge/code%20style-black-000000.svg?maxAge=2592000)](https://github.com/ambv/black)\n\n:warning: Note that there are major API changes since version 0.1.1 that have to be taken into account when upgrading!\n\n:warning: Python 2 and Django 1.11 are no longer supported from version 1.4.0!\n\n# Django rest framework sideloading\n\nDRF-sideloading is an extension to provide side-loading functionality of related resources. Side-loading allows related resources to be optionally included in a single API response minimizing requests to the API.\n\n## Quickstart\n\n1. Install drf-sideloading:\n\n ```shell\n pip install drf-sideloading\n ```\n\n2. Import `SideloadableRelationsMixin`:\n\n ```python\n from drf_sideloading.mixins import SideloadableRelationsMixin\n ```\n\n3. Write your SideLoadableSerializer:\n \n You need to define the **primary** serializer in the Meta data and can define prefetching rules. \n Also notice the **many=True** on the sideloadable relationships.\n\n ```python\n from drf_sideloading.serializers import SideLoadableSerializer\n \n class ProductSideloadableSerializer(SideLoadableSerializer):\n products = ProductSerializer(many=True)\n categories = CategorySerializer(source=\"category\", many=True)\n primary_suppliers = SupplierSerializer(source=\"primary_supplier\", many=True)\n secondary_suppliers = SupplierSerializer(many=True)\n suppliers = SupplierSerializer(many=True)\n partners = PartnerSerializer(many=True)\n \n class Meta:\n primary = \"products\"\n prefetches = {\n \"categories\": \"category\",\n \"primary_suppliers\": \"primary_supplier\",\n \"secondary_suppliers\": \"secondary_suppliers\",\n \"suppliers\": {\n \"primary_suppliers\": \"primary_supplier\",\n \"secondary_suppliers\": \"secondary_suppliers\",\n },\n \"partners\": \"partners\",\n }\n ```\n \n4. Prefetches\n\n For fields where the source is provided or where the source matches the field name, prefetches are not strictly required\n\n Multiple prefetches can be added to a single sideloadable field, but when using Prefetch object check that they don't clash with prefetches made in the get_queryset() method\n ```python\n from django.db.models import Prefetch\n\n prefetches = {\n \"categories\": \"category\",\n \"primary_suppliers\": [\"primary_supplier\", \"primary_supplier__some_related_object\"],\n \"secondary_suppliers\": Prefetch(\n lookup=\"secondary_suppliers\", \n queryset=Supplier.objects.prefetch_related(\"some_related_object\")\n ),\n \"partners\": Prefetch(\n lookup=\"partners\", \n queryset=Partner.objects.select_related(\"some_related_object\")\n )\n }\n ```\n\n Multiple sources can be added to a field using a dict. \n Each key is a source_key that can be used to filter what sources should be sideloaded.\n The values set the source and prefetches for this source.\n \n Note that this prefetch reuses `primary_supplier` and `secondary_suppliers` if suppliers and primary_supplier or secondary_suppliers are sideloaded\n ```python\n prefetches = {\n \"primary_suppliers\": \"primary_supplier\",\n \"secondary_suppliers\": \"secondary_suppliers\",\n \"suppliers\": {\n \"primary_suppliers\": \"primary_supplier\",\n \"secondary_suppliers\": \"secondary_suppliers\"\n }\n }\n ```\n\n Usage of Prefetch() objects is supported.\n Prefetch() objects can be used to filter a subset of some relations or just to prefetch or select complicated related objects\n In case there are prefetch conflicts, `to_attr` can be set but be aware that this prefetch will now be a duplicate of similar prefetches.\n prefetch conflicts can also come from prefetched made in the ViewSet.get_queryset() method.\n \n Note that this prefetch noes not reuse `primary_supplier` and `secondary_suppliers` if **suppliers** and **primary_supplier** or **secondary_suppliers** are sideloaded at the same time.\n ```python\n from django.db.models import Prefetch\n \n prefetches = {\n \"categories\": \"category\",\n \"primary_suppliers\": \"primary_supplier\",\n \"secondary_suppliers\": \"secondary_suppliers\",\n \"suppliers\": {\n \"primary_suppliers\": Prefetch(\n lookup=\"secondary_suppliers\", \n queryset=Supplier.objects.select_related(\"some_related_object\"), \n to_attr=\"secondary_suppliers_with_preselected_relation\"\n ),\n \"secondary_suppliers\": Prefetch(\n lookup=\"secondary_suppliers\", \n queryset=Supplier.objects.filter(created_at__gt=pendulum.now().subtract(days=10)).order_by(\"created_at\"), \n to_attr=\"latest_secondary_suppliers\"\n )\n },\n }\n ```\n\n5. Configure sideloading in ViewSet:\n \n Include **SideloadableRelationsMixin** mixin in ViewSet and define **sideloading_serializer_class** as shown in example below. \n Everything else stays just like a regular ViewSet.\n Since version 2.0.0 there are 3 new methods that allow to overwrite the serializer used based on the request version for example\n Since version 2.1.0 an additional method was added that allow to add request dependent filters to sideloaded relations\n\n ```python\n from drf_sideloading.mixins import SideloadableRelationsMixin\n \n class ProductViewSet(SideloadableRelationsMixin, viewsets.ModelViewSet):\n \"\"\"\n A simple ViewSet for viewing and editing products.\n \"\"\"\n \n queryset = Product.objects.all()\n serializer_class = ProductSerializer\n sideloading_serializer_class = ProductSideloadableSerializer\n \n def get_queryset(self):\n # Add prefetches for the viewset as normal \n return super().get_queryset().prefetch_related(\"created_by\")\n \n def get_sideloading_serializer_class(self, request=None):\n # use a different sideloadable serializer for older version \n if self.request.version < \"1.0.0\":\n return OldProductSideloadableSerializer\n return super().get_sideloading_serializer_class(request=request)\n \n def get_sideloading_serializer(self, *args, **kwargs):\n # if modifications are required to the serializer initialization this method can be used.\n return super().get_sideloading_serializer(*args, **kwargs)\n \n def get_sideloading_serializer_context(self):\n # Extra context provided to the serializer class.\n return {\"request\": self.request, \"format\": self.format_kwarg, \"view\": self}\n \n def add_sideloading_prefetch_filter(self, source, queryset, request):\n # \n if source == \"model1__relation1\":\n return queryset.filter(is_active=True), True\n if hasattr(queryset, \"readable\"):\n return queryset.readable(user=request.user), True\n return queryset, False\n ```\n\n6. Enjoy your API with sideloading support\n\n Example request and response when fetching all possible values\n ```http\n GET /api/products/?sideload=categories,partners,primary_suppliers,secondary_suppliers,suppliers,products\n ```\n\n ```json\n {\n \"products\": [\n {\n \"id\": 1,\n \"name\": \"Product 1\",\n \"category\": 1,\n \"primary_supplier\": 1,\n \"secondary_suppliers\": [2, 3],\n \"partners\": [1, 2, 3]\n }\n ],\n \"categories\": [\n {\n \"id\": 1,\n \"name\": \"Category1\"\n }\n ],\n \"primary_suppliers\": [\n {\n \"id\": 1,\n \"name\": \"Supplier1\"\n }\n ],\n \"secondary_suppliers\": [\n {\n \"id\": 2,\n \"name\": \"Supplier2\"\n },\n {\n \"id\": 3,\n \"name\": \"Supplier3\"\n }\n ],\n \"suppliers\": [\n {\n \"id\": 1,\n \"name\": \"Supplier1\"\n },\n {\n \"id\": 2,\n \"name\": \"Supplier2\"\n },\n {\n \"id\": 3,\n \"name\": \"Supplier3\"\n }\n ],\n \"partners\": [\n {\n \"id\": 1,\n \"name\": \"Partner1\"\n },\n {\n \"id\": 2,\n \"name\": \"Partner1\"\n },\n {\n \"id\": 3,\n \"name\": \"Partner3\"\n }\n ]\n }\n ```\n \n The user can also select what sources to load to Multi source fields. \n Leaving the selections empty or omitting the brackets will load all the prefetched sources.\n \n Example:\n\n ```http\n GET /api/products/?sideload=suppliers[primary_suppliers]\n ```\n ```json\n {\n \"products\": [\n {\n \"id\": 1,\n \"name\": \"Product 1\",\n \"category\": 1,\n \"primary_supplier\": 1,\n \"secondary_suppliers\": [2, 3],\n \"partners\": [1, 2, 3]\n }\n ],\n \"suppliers\": [\n {\n \"id\": 1,\n \"name\": \"Supplier1\"\n }\n ]\n }\n ```\n## Example Project\n\nDirectory `example` contains an example project using django rest framework sideloading library. You can set it up and run it locally using following commands:\n\n```shell\ncd example\nsh scripts/devsetup.sh\nsh scripts/dev.sh\n```\n\n## Contributing\n\nContributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.\n\n#### Setup for contribution\n\n```shell\nsource <YOURVIRTUALENV>/bin/activate\n(myenv) $ pip install -r requirements_dev.txt\n```\n\n### Test\n\n```shell\n$ make test\n```\n\n#### Run tests with environment matrix\n\n```shell\n$ make tox\n```\n\n#### Run tests with specific environment\n\n```shell\n$ tox --listenvs\npy37-django22-drf39\npy38-django31-drf311\npy39-django32-drf312\n# ...\n$ tox -e py39-django32-drf312\n```\n\n#### Test coverage\n\n```shell\n$ make coverage\n```\n\nUse [pyenv](https://github.com/pyenv/pyenv) for testing using different python versions locally.\n\n## License\n\n[MIT](https://github.com/namespace-ee/drf-sideloading/blob/master/LICENSE)\n\n## Credits\n\n- [Demur Nodia](https://github.com/demonno)\n- [T\u00f5nis V\u00e4in](https://github.com/tonisvain)\n- [Madis V\u00e4in](https://github.com/madisvain)\n- [Lenno Nagel](https://github.com/lnagel)\n\n\n# Changelog\n\n## 2.2.2 (2024-10-28)\n- fix ReverseManyToOne reverse prefetch model selection\n\n## 2.2.1 (2024-10-28)\n- fix ReverseManyToOne through prefetch model selection\n\n## 2.2.0 (2024-10-22)\n- Support for Django 5\n - Django supported versions `5.0 -> 5.1`\n - Python supported versions `3.10 -> 3.12`\n - Django-rest-framework supported versions. `3.15`\n- Add support for request dependant prefetch filtering\n- refactored code for better readability\n- prefetches from view are also used when determining sideloading prefetches\n- Add support for drf_spectacular documentation\n- Add prefetch related support for multi source fields\n\n## 2.1.0 (2024-01-26)\n\n- Support for Django 4\n - Django supported versions `4.0 -> 4.2`\n - Python supported versions `3.10 -> 3.11`\n - Django-rest-framework supported versions. `3.13 -> 3.14`\n- Fix issue with prefetch ordering\n\n## 2.0.1 (2021-12-16)\n\n- Ensure that only allowed methods are sideloaded\n\n## 2.0.0 (2021-12-10)\n\nMajor refactoring to allow for multi source fields.\n\n- Add support for multi source fields\n- Add support for detail view sideloading\n- Dropped formless BrowsableAPIRenderer enforcement\n- Raises error in case invalid fields are requested for sideloading\n\n## 1.4.2 (2021-04-12)\n\n- Add support for lists in filter_related_objects\n\n## 1.4.1 (2021-04-09)\n\n- Fix sideloadable prefetches\n\n## 1.4.0 (2021-04-07)\n\n- Python supported versions `3.6 -> 3.9`\n- Django supported versions `2.2`, `3.1`, `3.2`\n- Django-rest-framework supported versions. `3.9 -> 3.12`\n\n## 1.3.1 (2021-04-07)\n\nAdded support for `django.db.models.Prefetch`\n\n## 1.3.0 (2019-04-23)\n\nFix empty related fields sideloading bug\n\n- Support for Django 2.2\n\n## 1.2.0 (2018-10-29)\n\nCompletely refactored sideloading configuration via a custom serializer.\n\n- Support for Django 2.1\n- Support for Django-rest-framework 3.9\n\n## 0.1.10 (2017-07-20)\n\n- Support for Django 2.0\n\n## 0.1.8 (2017-07-20)\n\n- change sideloadable_relations dict\n- always required to define 'serializer'\n- key is referenced to url and serialized in as rendered json\n- add `source` which specifies original model field name\n\n## 0.1.0 (2017-07-20)\n\n- First release on PyPI.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Extension for Django Rest Framework to enable simple sideloading",
"version": "2.2.2",
"project_urls": {
"Homepage": "https://github.com/namespace-ee/drf-sideloading"
},
"split_keywords": [
"drf-sideloading"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1309ccb2c3bf017f4909e1fdeae483b324d1d2a1f9348a0a67649da889d0ab4a",
"md5": "ed3822149f22d7025588e3c6e432b962",
"sha256": "00fd4d3c0e8a83f52a9b7f9c685aff44706e68e5c6dfd4fe885cc550eb8d04cf"
},
"downloads": -1,
"filename": "drf_sideloading-2.2.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "ed3822149f22d7025588e3c6e432b962",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 16056,
"upload_time": "2024-10-28T14:33:53",
"upload_time_iso_8601": "2024-10-28T14:33:53.026028Z",
"url": "https://files.pythonhosted.org/packages/13/09/ccb2c3bf017f4909e1fdeae483b324d1d2a1f9348a0a67649da889d0ab4a/drf_sideloading-2.2.2-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bc52eaf93b7bd23f3f735d8496a6728e4248d8d0df4bdcf5b0a09dbdb4c27789",
"md5": "5ab4c61116c5a9a022b05a85cc02b4bd",
"sha256": "c5b3b75b37be79b74a1068cbf469e2af0f95dd06684412cbf769dcfa5860b814"
},
"downloads": -1,
"filename": "drf_sideloading-2.2.2.tar.gz",
"has_sig": false,
"md5_digest": "5ab4c61116c5a9a022b05a85cc02b4bd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 24759,
"upload_time": "2024-10-28T14:33:55",
"upload_time_iso_8601": "2024-10-28T14:33:55.208168Z",
"url": "https://files.pythonhosted.org/packages/bc/52/eaf93b7bd23f3f735d8496a6728e4248d8d0df4bdcf5b0a09dbdb4c27789/drf_sideloading-2.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-28 14:33:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "namespace-ee",
"github_project": "drf-sideloading",
"travis_ci": true,
"coveralls": true,
"github_actions": false,
"requirements": [],
"tox": true,
"lcname": "drf-sideloading"
}