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.2.tar.gz
(68.3 kB
view hashes)
Built Distribution
Close
Hashes for django_oscar_odin-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd1b2c03e0224f9989aed8c684376fda25a8e3a74d056fb3538a9ccb4a693e06 |
|
MD5 | 0dc69bd2691955193836977f37d7102e |
|
BLAKE2b-256 | f0cbd949072fc82c38737ea8087360e68b2ce3bda448716ce4f79c7db34aff35 |