shuup.front.models package¶
Submodules¶
shuup.front.models.stored_basket module¶
-
class
shuup.front.models.stored_basket.StoredBasket(id, key, shop, supplier, customer, orderer, creator, created_on, updated_on, persistent, deleted, finished, title, data, taxless_total_price_value, taxful_total_price_value, currency, prices_include_tax, product_count, class_spec)[source]¶ Bases:
shuup.utils.properties.MoneyPropped,django.db.models.base.ModelParameters: - id (AutoField) – Id
- key (CharField) – Key
- shop (ForeignKey to
shuup.core.models.Shop) – Shop - supplier (ForeignKey to
shuup.core.models.Supplier) – Supplier - customer (ForeignKey to
shuup.core.models.Contact) – Customer - orderer (ForeignKey to
shuup.core.models.PersonContact) – Orderer - creator (ForeignKey to
django.contrib.auth.models.User) – Creator - created_on (DateTimeField) – Created on
- updated_on (DateTimeField) – Updated on
- persistent (BooleanField) – Persistent
- deleted (BooleanField) – Deleted
- finished (BooleanField) – Finished
- title (CharField) – Title
- data (TaggedJSONField) – Data
- taxless_total_price_value (MoneyValueField) – Taxless total price
- taxful_total_price_value (MoneyValueField) – Taxful total price
- currency (CurrencyField) – Currency
- prices_include_tax (BooleanField) – Prices include tax
- product_count (IntegerField) – Product_count
- class_spec (CharField) – Class spec
- products (ManyToManyField to
shuup.core.models.Product) – Products
-
key¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
shop¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
supplier¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
customer¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
orderer¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
creator¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
created_on¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
updated_on¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
persistent¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
deleted¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
finished¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
title¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
data¶ A placeholder class that provides a way to set the attribute on the model.
-
taxful_total_price¶
-
taxless_total_price¶
-
taxless_total_price_value¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
taxful_total_price_value¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
currency¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
prices_include_tax¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
product_count¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
products¶ Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
class_spec¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
creator_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
customer_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_next_by_created_on(*, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)¶
-
get_next_by_updated_on(*, field=<django.db.models.fields.DateTimeField: updated_on>, is_next=True, **kwargs)¶
-
get_previous_by_created_on(*, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)¶
-
get_previous_by_updated_on(*, field=<django.db.models.fields.DateTimeField: updated_on>, is_next=False, **kwargs)¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.Manager object>¶
-
orderer_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
shop_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
supplier_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Module contents¶
-
class
shuup.front.models.StoredBasket(id, key, shop, supplier, customer, orderer, creator, created_on, updated_on, persistent, deleted, finished, title, data, taxless_total_price_value, taxful_total_price_value, currency, prices_include_tax, product_count, class_spec)[source]¶ Bases:
shuup.utils.properties.MoneyPropped,django.db.models.base.ModelParameters: - id (AutoField) – Id
- key (CharField) – Key
- shop (ForeignKey to
shuup.core.models.Shop) – Shop - supplier (ForeignKey to
shuup.core.models.Supplier) – Supplier - customer (ForeignKey to
shuup.core.models.Contact) – Customer - orderer (ForeignKey to
shuup.core.models.PersonContact) – Orderer - creator (ForeignKey to
django.contrib.auth.models.User) – Creator - created_on (DateTimeField) – Created on
- updated_on (DateTimeField) – Updated on
- persistent (BooleanField) – Persistent
- deleted (BooleanField) – Deleted
- finished (BooleanField) – Finished
- title (CharField) – Title
- data (TaggedJSONField) – Data
- taxless_total_price_value (MoneyValueField) – Taxless total price
- taxful_total_price_value (MoneyValueField) – Taxful total price
- currency (CurrencyField) – Currency
- prices_include_tax (BooleanField) – Prices include tax
- product_count (IntegerField) – Product_count
- class_spec (CharField) – Class spec
- products (ManyToManyField to
shuup.core.models.Product) – Products
-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
class_spec¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
created_on¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
creator¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
creator_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
currency¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
customer¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
customer_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
data¶ A placeholder class that provides a way to set the attribute on the model.
-
deleted¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
finished¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_next_by_created_on(*, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)¶
-
get_next_by_updated_on(*, field=<django.db.models.fields.DateTimeField: updated_on>, is_next=True, **kwargs)¶
-
get_previous_by_created_on(*, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)¶
-
get_previous_by_updated_on(*, field=<django.db.models.fields.DateTimeField: updated_on>, is_next=False, **kwargs)¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
key¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.Manager object>¶
-
orderer¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
orderer_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
persistent¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
prices_include_tax¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
product_count¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
products¶ Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
shop¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
shop_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
supplier¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
supplier_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
taxful_total_price¶
-
taxful_total_price_value¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
taxless_total_price¶
-
taxless_total_price_value¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
title¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
updated_on¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.