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 details)
Built Distribution
File details
Details for the file django_oscar_odin-0.2.2.tar.gz
.
File metadata
- Download URL: django_oscar_odin-0.2.2.tar.gz
- Upload date:
- Size: 68.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65024e95c21ed599f4c7dad857b9ae18d40517182f5238311803c61edabd01bc |
|
MD5 | 4ccdcf5452b80f6717030f06cfde4af2 |
|
BLAKE2b-256 | 456550d20933563f96900ff48c0ee90f9467266e244b2bab49fee31886474989 |
File details
Details for the file django_oscar_odin-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: django_oscar_odin-0.2.2-py3-none-any.whl
- Upload date:
- Size: 77.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd1b2c03e0224f9989aed8c684376fda25a8e3a74d056fb3538a9ccb4a693e06 |
|
MD5 | 0dc69bd2691955193836977f37d7102e |
|
BLAKE2b-256 | f0cbd949072fc82c38737ea8087360e68b2ce3bda448716ce4f79c7db34aff35 |