How It Works¶
The basketitems are foreignkey’d to the basket.
Every item in the basket is a basketitem.
If you have two loaves of bread in your basket, then there will be two basketitem objects to represent this.
Basketitems each have an md5 hash that allows quick and accurate comparison of basketitems. This is useful if you want to group the items for display back to the user.