Models¶
shopkit.images.models
-
class
shopkit.images.models.ImagesProductMixin¶ Bases:
objectMixin 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.OrderedInlineItemBaseBase 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.ModelBase class for image relating to a product.