Skip to main content

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


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)

Uploaded Source

Built Distribution

django_oscar_odin-0.1.0b4-py3-none-any.whl (72.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page