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.1.0a1.tar.gz
(51.7 kB
view hashes)
Built Distribution
Close
Hashes for django_oscar_odin-0.1.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f33024964f304fa3f4145fb15134eabf38ad114a5969c787c57db994035fad89 |
|
MD5 | a87d8705715c31a50af4c21bbe816e2b |
|
BLAKE2b-256 | 0a10ebedd4f877a94be7bec10fe4055dab7202cad86f334b608fa7de97c2324e |
Close
Hashes for django_oscar_odin-0.1.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b010777aa0453f46fd142ea19b92039e6cb221c575b6cb44bc0b6721234f7dd |
|
MD5 | 403f23b9b35bb8547bdda15e42706e4e |
|
BLAKE2b-256 | b6b9833a419b735c459861881e0a0c0962c9c7ece304d7df811c3da986e95410 |