diefenbach / django-lfs

An online-shop based on Django
http://www.getlfs.com
BSD 3-Clause "New" or "Revised" License
622 stars 222 forks source link

cart and customer must be linked with session and be unique #69

Closed suvit closed 7 years ago

suvit commented 11 years ago

Cart.session and Customer.session must be links to Session object.

  1. When sessions expired, delete Cart and Customer was deleted by default (make setting for this).
  2. ForeignKey created a db index on this field. Good for query optimization.
  3. And this field must be unique to disable situation with multiple cart and customer for one session.
pigletto commented 11 years ago

I don't fully understand what you mean there. Can you please describe it more precisely. Also, what is the purpose of these changes? Can you provide a description to reproduce the problems addressed here? How do you manage to have multiple carts/customers for one session - any way to reproduce this? Which version of LFS do you have?