Configurable product for django-shop
Project description
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
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
File details
Details for the file django-shop-configurableproduct-0.3.1.tar.gz
.
File metadata
- Download URL: django-shop-configurableproduct-0.3.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a33609981919049b5bb6ceed5533674f7ce849ca981df20afdd4f1220e2a9dc7 |
|
MD5 | 5bc2a2831121e41a7e562f83091e9d69 |
|
BLAKE2b-256 | 16e9cc97e963efecc24e0da598a331db65b92e523e9c0669c0460a5fb03774bf |