Models

shopkit.stock.advanced.models

class shopkit.stock.advanced.models.StockedCartItemMixin

Bases: shopkit.stock.models.StockedItemBase, shopkit.stock.models.StockedCartItemBase

Mixin class for CartItem‘s containing items for which stock is kept.

class shopkit.stock.advanced.models.StockedCartMixin

Bases: shopkit.stock.models.StockedCartBase

Mixin class for Cart‘s containing items for which stock is kept.

class shopkit.stock.advanced.models.StockedItemMixin(*args, **kwargs)

Bases: django.db.models.base.Model, shopkit.stock.models.StockedItemBase

Item for which stock is kept in an integer stock field.

is_available(quantity)

Method used to determine whether or not the current item is in an orderable state.

class shopkit.stock.advanced.models.StockedOrderItemMixin

Bases: shopkit.stock.models.StockedItemBase, shopkit.stock.models.StockedOrderItemBase

Mixin class for OrderItem‘s containing items for which stock is kept.

confirm()

Register lowering of the current item’s stock.

class shopkit.stock.advanced.models.StockedOrderMixin

Bases: shopkit.stock.models.StockedOrderBase

Mixin class for Order‘s containing items for which stock is kept.