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.2.1.tar.gz
(68.2 kB
view hashes)
Built Distribution
Close
Hashes for django_oscar_odin-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe06f728555dde6d247b52430d98cea9df82b7911c6f11e0b674dcc5a8818e4d |
|
MD5 | f7a8e22feb3c604764a862dc3f3011f4 |
|
BLAKE2b-256 | 81c0d22d65b395d2b6553e963275993783af433a3360da29562f2a51ee9f2b61 |