- The current cart of the current customer.

+ The current cart of the current customer.

- The content object the criterion belongs to.

+ The content object the criterion belongs to.

- The current selected operator for the criterion.

+ The current selected operator for the criterion.

- The position of the criterion within a list of criteria of the

+ The position of the criterion within a list of criteria of the

- The product, if the criterion is called from a product detail view.

- Otherwise this is None.

+ The product, if the criterion is called from a product detail view.

+ Otherwise this is None.

- EQUAL, LESS_THAN, LESS_THAN_EQUAL, GREATER_THAN, GREATER_THAN_EQUAL, IS_SELECTED, IS_NOT_SELECTED, IS_VALID, IS_NOT_VALID, CONTAINS

- Integers which represents certain operators.

+ EQUAL, LESS_THAN, LESS_THAN_EQUAL, GREATER_THAN, GREATER_THAN_EQUAL, IS_SELECTED, IS_NOT_SELECTED, IS_VALID, IS_NOT_VALID, CONTAINS

+ Integers which represents certain operators.

- INPUT, SELECT, MULTIPLE_SELECT

- Constants which represents the types of selectable values. One of

- these must be returned from ``get_value_type``.

+ INPUT, SELECT, MULTIPLE_SELECT

+ Constants which represents the types of selectable values. One of

+ these must be returned from ``get_value_type``.

- A list of operators which can be returned from ``get_operators``.

+ A list of operators which can be returned from ``get_operators``.

- [EQUAL, _(u"Equal to")],

- [LESS_THAN, _(u"Less than")],

- [LESS_THAN_EQUAL, _(u"Less than equal to")],

- [GREATER_THAN, _(u"Greater than")],

- [GREATER_THAN_EQUAL, _(u"Greater than equal to")],

+ [EQUAL, _(u"Equal to")],

+ [LESS_THAN, _(u"Less than")],

+ [LESS_THAN_EQUAL, _(u"Less than equal to")],

+ [GREATER_THAN, _(u"Greater than")],

+ [GREATER_THAN_EQUAL, _(u"Greater than equal to")],

- A list of operators which can be returned from ``get_operators``.

+ A list of operators which can be returned from ``get_operators``.

- [IS_SELECTED, _(u"Is selected")],

- [IS_NOT_SELECTED, _(u"Is not selected")],

+ [IS_SELECTED, _(u"Is selected")],

+ [IS_NOT_SELECTED, _(u"Is not selected")],

- A list of operators which can be returned from ``get_operators``.

+ A list of operators which can be returned from ``get_operators``.

- [IS_VALID, _(u"Is valid")],

- [IS_NOT_VALID, _(u"Is not valid")],

+ [IS_VALID, _(u"Is valid")],

+ [IS_NOT_VALID, _(u"Is not valid")],

- A list of operators which can be return from ``get_operators``.

+ A list of operators which can be return from ``get_operators``.

- [EQUAL, _(u"Equal to")],

- [CONTAINS, _(u"Contains")],

+ [EQUAL, _(u"Equal to")],

+ [CONTAINS, _(u"Contains")],

content_type = models.ForeignKey(ContentType, verbose_name=_(u"Content type"), related_name="content_type")

content_id = models.PositiveIntegerField(_(u"Content id"))

- If product is given the ~~weigth~~ is taken from the product, otherwise it

+ If product is given, the price is taken from the product, otherwise it

is the total price of all products within the cart.

- If product is given the clag is taken from the product, otherwise it

- is the clag of all products within the cart.

+ If product is given, the clag is taken from the product, otherwise it is

+ the clag of all products within the cart.

clag = (2 * self.product.get_width()) + (2 * self.product.get_height()) + self.product.get_length()

- If product is given the ~~w~~eig~~t~~h is taken from the product, otherwise it

+ If product is given, the height is taken from the product, otherwise it

is the total height of all products within the cart.

- If product is given the length is taken from the product otherwise it

+ If product is given, the length is taken from the product otherwise it

is the max length of all products within the cart.

- If product is given the weigth is taken from the product, otherwise it

+ If product is given, the weigth is taken from the product, otherwise it

is the total weight of all products within the cart.

- If product is given the width is taken from the product, otherwise it

+ If product is given, the width is taken from the product, otherwise it

is the max width of all products within the cart.