Rename "session" field to "cart_id"

This commit is contained in:
Raphael Michel
2015-10-24 11:23:36 +02:00
parent d87715c8d6
commit ecebe481d7
8 changed files with 96 additions and 72 deletions

View File

@@ -369,8 +369,8 @@ class CartPosition(ObjectWithAnswers, Versionable):
:type event: Evnt
:param item: The selected item
:type item: Item
:param session: The user session that contains this cart position
:type session: str
:param cart_id: The user session that contains this cart position
:type cart_id: str
:param variation: The selected ItemVariation or null, if the item has no properties
:type variation: ItemVariation
:param datetime: The datetime this item was put into the cart
@@ -386,9 +386,9 @@ class CartPosition(ObjectWithAnswers, Versionable):
Event,
verbose_name=_("Event")
)
session = models.CharField(
cart_id = models.CharField(
max_length=255, null=True, blank=True,
verbose_name=_("Session")
verbose_name=_("Cart ID (e.g. session key)")
)
item = VersionedForeignKey(
Item,