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.0b1.tar.gz
(52.3 kB
view hashes)
Built Distribution
Close
Hashes for django_oscar_odin-0.1.0b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eed269c469968cc6cf415cfad6c098992481c4afef903648b832f9d4ab7d7ffd |
|
MD5 | c882140939dac2cc300d6949f21aae45 |
|
BLAKE2b-256 | e8d0413403d82e0015bd7a0a17eb608d48fae730439e074d8cad82e25cf6b122 |
Close
Hashes for django_oscar_odin-0.1.0b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e6caeb9915684eedc48937c912ceb89e0fdbf5c32c5702dbc306faaed277196 |
|
MD5 | c1f97186795a1f434b3470f8dcdfd05c |
|
BLAKE2b-256 | 38bb037575dfb094e9b6be4750cc2b14521121e2e5cacf9b57a516fff03d9124 |