Module ImportFrom alias identifier ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return TupleLoad NameLoad Call NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Call NameLoad Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareLtE AttributeLoad NameLoad attr Num body Return TupleLoad NameLoad Call NameLoad Str If CompareGt NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Call NameLoad Str Dict Str AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad Return TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body If CompareGt AttributeLoad NameLoad attr Num body Return AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body If CompareGt AttributeLoad NameLoad attr Num body Return Call NameLoad Str Return Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body If CompareGt AttributeLoad NameLoad attr Num body Return BinOpMod Call NameLoad Str AttributeLoad NameLoad attr Return Call NameLoad Str decorator_list NameLoad decorator_list
N/A django.utils.translation ugettext_lazy _ Base N/A object N/A N/A 
    Base availability policy.
     N/A code N/A message N/A dispatch_date None short_message N/A N/A self N/A N/A N/A 
        A shorter version of the availability message, suitable for showing on
        browsing pages.
         N/A N/A self message N/A property is_available_to_buy N/A N/A self N/A N/A N/A 
        Test if this product is available to be bought.  This is used for
        validation when a product is added to a user's basket.
         N/A N/A N/A N/A self is_purchase_permitted 1 N/A 0 N/A property is_purchase_permitted N/A N/A self quantity N/A N/A N/A 
        Test whether a proposed purchase is allowed

        Should return a boolean and a reason
         N/A N/A False N/A _ unavailable N/A N/A Unavailable N/A Base N/A N/A 
    Policy for when a product is unavailable
     N/A code unavailable N/A message N/A _ Unavailable N/A Available N/A Base N/A N/A 
    For when a product is always available, irrespective of stock level.

    This might be appropriate for digital products where stock doesn't need to
    be tracked and the product is always available to buy.
     N/A code available N/A message N/A _ Available is_purchase_permitted N/A N/A self quantity N/A N/A N/A N/A True N/A N/A StockRequired N/A Base N/A N/A 
    Allow a product to be bought while there is stock.  This policy is
    instantiated with a stock number (``num_available``).  It ensures that the
    product is only available to buy while there is stock available.

    This is suitable for physical products where back orders (eg allowing
    purchases when there isn't stock available) are not permitted.
     N/A CODE_IN_STOCK instock N/A CODE_OUT_OF_STOCK outofstock __init__ N/A N/A self num_available N/A N/A N/A N/A self num_available num_available N/A is_purchase_permitted N/A N/A self quantity N/A N/A N/A N/A N/A self num_available 0 N/A N/A N/A False N/A _ no stock available N/A N/A quantity N/A self num_available N/A N/A msg N/A N/A _ a maximum of %(max)d can be bought N/A max N/A self num_available N/A N/A False msg N/A N/A True N/A code N/A N/A self N/A N/A N/A N/A N/A self num_available 0 N/A N/A N/A self CODE_IN_STOCK N/A N/A self CODE_OUT_OF_STOCK N/A property short_message N/A N/A self N/A N/A N/A N/A N/A self num_available 0 N/A N/A N/A _ In stock N/A N/A _ Unavailable N/A property message N/A N/A self N/A N/A N/A N/A N/A self num_available 0 N/A N/A N/A N/A _ In stock (%d available) N/A self num_available N/A N/A _ Unavailable N/A property N/A