David Winterbottom
3fd9c9b634
Add currency field to basket line
Plus provide a currency property on the basket itself.
12 lat temu
David Winterbottom
1884fdac63
Handle basket lines with no stockrecord
This change handles the backwards compatiblity issue of adding a
required stockrecord field onto the basket line model.
When a basket in encountered which has a line without a stockrecord, we
delete it and attempt to re-add it to the basket.
We also merge the middleware together for simplicity.
12 lat temu
David Winterbottom
07f19543c5
Ensure basket admin continues to work ok
No more references to incl_tax fields as they can be determined without
a strategy.
12 lat temu
David Winterbottom
7dd89f13f6
Adjust basket admin to handle new stockrecord structure
Improve __unicode__ method for stockrecord.
12 lat temu
David Winterbottom
06c9e2a782
Improve basket admin
Make several fields readonly as it doesn't make sense to edit them
directly. This makes the admin a little more 'dashboard-like'.
13 lat temu
David Winterbottom
7ddb7f3bd3
Improve django admin for basket app
13 lat temu
Andrew Ingram
d6567c73c1
Removed import_module from basket admin
14 lat temu
David Winterbottom
7443395912
Reworked import_module function to load classes into passed namespace
14 lat temu
David Winterbottom
d8494beaca
Tided up address, analytics, basket apps
14 lat temu
David Winterbottom
887d605757
Refactored folder structure to use an 'apps' folder
14 lat temu
David Winterbottom
cb3b26509a
Refactored location of dynamic class loader
14 lat temu
David Winterbottom
3261f6f148
Updated basket and offer models to support "consumption"
15 lat temu
David Winterbottom
f30c78b99d
Made the admin object load models dynamically
15 lat temu
David Winterbottom
b943c47214
All admin.py files now use the dynamic model loading code
15 lat temu
David Winterbottom
1114fb9dca
Tidied up the basket app
15 lat temu
David Winterbottom
6ef58553a8
Added new model to capture line item prices. Plus various other tweaks
to the admin and model set-up.
15 lat temu
David Winterbottom
8c543eb357
Added missing files from last commit
15 lat temu