Models

shopkit.images.models

class shopkit.images.models.ImagesProductMixin

Bases: object

Mixin representing a product with multiple images associated to it.

get_default_image()

By default, this returns the first image according to whatever sortorder is used.

class shopkit.images.models.OrderedProductImageBase(*args, **kwargs)

Bases: shopkit.images.models.ProductImageBase, shopkit.core.basemodels.OrderedInlineItemBase

Base class for explicitly ordere image relating to a product.

Related objects for generating default ordering.

class shopkit.images.models.ProductImageBase(*args, **kwargs)

Bases: django.db.models.base.Model

Base class for image relating to a product.