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.4.1.tar.gz
(73.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_oscar_odin-0.4.1.tar.gz.
File metadata
- Download URL: django_oscar_odin-0.4.1.tar.gz
- Upload date:
- Size: 73.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1db4dcb0a63a49e15d2a6eae0a3e5afca4ee8ba605964bdfe31ebb6aee0baaf
|
|
| MD5 |
a001d9f4184192804731a4cc8525ac16
|
|
| BLAKE2b-256 |
10042546a9d18351c8758c0a82e9b43f9580de182620bcff52f2969c35d92826
|
File details
Details for the file django_oscar_odin-0.4.1-py3-none-any.whl.
File metadata
- Download URL: django_oscar_odin-0.4.1-py3-none-any.whl
- Upload date:
- Size: 85.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8ae68bfdf6d06c86adbd3158d7a595343649d52a26d288bf86874c2ae2b60d9
|
|
| MD5 |
0a5f83ee9c901c63652484cd8c0ea960
|
|
| BLAKE2b-256 |
bd9089630369d731c1796a3605b5e6d66e7f45f079fe6d1934249246c5a62614
|