wagtail-longclaw/longclaw/tests/products/models.py

12 wiersze
441 B
Python

from django.db import models
from wagtail.wagtailcore.fields import RichTextField
from longclaw.longclawproducts.models import ProductVariantBase
class ProductVariant(ProductVariantBase):
# Enter your custom product variant fields here
# e.g. colour, size, stock and so on.
# Remember, ProductVariantBase provides 'price', 'ref', 'slug' fields
# and the parental key to the Product model.
description = RichTextField()