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.0b4.tar.gz
(64.0 kB
view hashes)
Built Distribution
Close
Hashes for django_oscar_odin-0.1.0b4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 695e0afc810233c1b356bd73fbedcb686be10110cb4e51593247060d548d9013 |
|
MD5 | b9f32fe4392be4442dc2a26fd037086b |
|
BLAKE2b-256 | 2d8ca2afcb232cf2ee99dace417e8a9c890a0307d3d16fd59561fd91dd978401 |
Close
Hashes for django_oscar_odin-0.1.0b4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a563c7d09201f2cae25cb1f1c4c636040d20ebda469775b5d8dbe3c64462cf68 |
|
MD5 | 2a56b01cad7d165c3a5efa4fe6d72502 |
|
BLAKE2b-256 | 55b6e4bb3d848d5dc7620daffb4ab7a7d29df48e304c1e8f0cad2f54826dba20 |