This plugin allow you to:
Define product types in django admin interface with custom set of fields
Add custom fields to products
Supported field types
Float field
Char field
Image field (with preview in admin via sorl.thumbnail)
Boolean field (NullBooleanField)
How to use it
Install from bitbucket or pypi
If you want to define static fields for all product types (i.e. size, …):
Create a subclass of configurableproduct.models.CProduct
Write admin class based on configurableproduct.admin.CProductAdmin
If you want to use CProduct model directly, set ENABLE_CPRODUCT_ADMIN to True in your settings file.
You can access custom fields via productfloat_set, productchar_set,… as:
product_object.productchar_set.all()[0].value
You can access ordered list of custom fields via product_object.field_list property
Metadata
Release files for django-shop-configurableproduct 0.3.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 | |
|---|---|---|---|---|
| django-shop-configurableproduct-0.3.1.tar.gz | 9.5 kB | Without provenance | Details |
Release files / django-shop-configurableproduct-0.3.1.tar.gz
| Download URL | django-shop-configurableproduct-0.3.1.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a33609981919049b5bb6ceed5533674f7ce849ca981df20afdd4f1220e2a9dc7
|
|
BLAKE2b-256 checksum How to use checksums |
16e9cc97e963efecc24e0da598a331db65b92e523e9c0669c0460a5fb03774bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-shop-configurableproduct 0.3.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.