django-oscar-approval
Order/Product approval extension for Django Oscar
Getting started
Installation
Add 'oscar_approval' to INSTALLED_APPS and run:
./manage.py syncdb
Configuration
Edit your settings.py to set the following settings (example):
OSCAR_LINE_APPROVAL_STATUS = statuses.PENDING_AUTHORISATION OSCAR_ORDER_APPROVAL_STATUS = statuses.PENDING_AUTHORISATION
Include approval urls in your application:
from oscar_approval.apps.approval.app import application as approval_application (r'^approval/', include(approval_application.urls)),
Integration into the project
You may choose to integrate any of the following components:
Product model extension:
from oscar_approval.apps.catalogue.abstract_models import AbstractProduct as ApprovalAbstractProduct ... class Product(AbstractProduct, ApprovalAbstractProduct): ...Basic behaviour on receiving 'order_placed' signal:
from oscar.apps.order.signals import order_placed from oscar_approval.apps.order.receivers import receive_order_placed order_placed.connect(receive_order_placed)
This receiver simply sets OSCAR_LINE_APPROVAL_STATUS and OSCAR_ORDER_APPROVAL_STATUS for lines and orders that require approval.
Pin authorisation tab in the user profile:
…
Dashboard application for managing reviewers and viewing approval event logs:
Extend user profile:
from oscar_approval.apps.customer.abstract_models import AbstractProfile as ApproverProfile class Profile(ApproverProfile): ...Include dashboard application urls:
from oscar_approval.apps.dashboard.app import application as approval_dashboard_application (r'^dashboard/approval/', include(approval_dashboard_application.urls))
Metadata
Release files for django-oscar-approval 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-oscar-approval-0.1.tar.gz | 7.7 kB | Without provenance | Details for django-oscar-approval-0.1.tar.gz |
Release files / django-oscar-approval-0.1.tar.gz
| Download URL | django-oscar-approval-0.1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb51ae8ea77c513cd7efb44db05fcc90b4cffd66c4520f18a8523405c1f8b09e
|
|
BLAKE2b-256 checksum How to use checksums |
a58066824ce501103acbbc8f5ff87cf2b5e3c2c56002787e3e9026b6a723ab50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-oscar-approval 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.