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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size django-shop-configurableproduct-0.2.8.tar.gz (6.1 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for django-shop-configurableproduct-0.2.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29b4e855f6b4cbca1abb1b5a1774576a50445fe5ff769b0621affc5323b0be50 |
|
MD5 | b72c4ebe628091caf5239536d092592d |
|
BLAKE2-256 | 291fadc1185577f721e86a3d950221ad7ba0390fd140aab31b810390da0437f2 |