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.0b2.tar.gz
(64.0 kB
view hashes)
Built Distribution
Close
Hashes for django_oscar_odin-0.1.0b2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85b1ff10ca8ed7c6df31b8b724005b3f8e560e6801c3d004956dfa1499b85756 |
|
MD5 | ab0fa8b49de9e57bda285ee68ef94bf4 |
|
BLAKE2b-256 | 0667d5d6a612f30c3340d16f759eaac25208fbd60298bd3a9a1886e5e3777165 |
Close
Hashes for django_oscar_odin-0.1.0b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7dcce29091113c06b3bb0b45c3a6781276b0cdba4cbd2e8d85700ba0f0a062e |
|
MD5 | 265f9e175e6f844adeade3f14d1a7d7b |
|
BLAKE2b-256 | 46b918660e5eec58f5e03989572cbf70911e51e20030bdf42aae6b5a327f379a |