Models¶
shopkit.featured.models
-
class
shopkit.featured.models.FeaturedProductMixin(*args, **kwargs)¶ Bases:
django.db.models.base.ModelMixin for products which have a boolean featured property and an is_featured manager, filtering the items from the in_shop manager so that only featured items are returned.
Todo
Write the is_featured manager - and test it.
-
class
shopkit.featured.models.OrderedFeaturedProductMixin(*args, **kwargs)¶ Bases:
shopkit.featured.models.FeaturedProductMixinMixin for ordered featured products.
Todo
Make sure the is_featured manager for this base model uses the featured_order attribute.