Odin Resources and mappings to Oscar models
Project description
Oscar Odin
Mapping of Oscar eCommerce models to Odin resources.
Installation
To install add oscar_odin
to your installed apps
Usage
from oscar.core.loading import get_model
from oscar_odin.mappings import catalogue
Product = get_model("catalogue", "Product")
# Map a product to a resource.
product = Product.objects.get(id=1)
product_resource = catalogue.product_to_resource(product)
Developing odin
Using pip:
make install make test
Using poetry:
poetry install --all-extras poetry run ./manage.py test
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 Distribution
django_oscar_odin-0.3.0.tar.gz
(69.6 kB
view details)
Built Distribution
File details
Details for the file django_oscar_odin-0.3.0.tar.gz
.
File metadata
- Download URL: django_oscar_odin-0.3.0.tar.gz
- Upload date:
- Size: 69.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 905b3d6e728e278b9b92cc9313283985ba95c8e88f3f0f097bb6e857972f7752 |
|
MD5 | 8aa6301afecb28ed32f20f2747ac624b |
|
BLAKE2b-256 | a58acb9f88f703eed637908944c108a4d9e4efda48b8c8f0d2f719ee694331e0 |
File details
Details for the file django_oscar_odin-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: django_oscar_odin-0.3.0-py3-none-any.whl
- Upload date:
- Size: 79.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fefde92b7f157368565c51ccf6fc1a8c91b78559f610c7dd1945397206e6e51 |
|
MD5 | 9f4ede3894d06286d9f6d7eacbb8acf8 |
|
BLAKE2b-256 | 5c1d20947ea78460458d648ae3a1144d164b098eb7eec9228dfd240e0f09bdcc |