David Winterbottom
9389ad2281
Use a namedtuple as a container for availability/price information
12 anni fa
David Winterbottom
b6aacfff8a
Update customer alerts to avoid is_available_to_buy
12 anni fa
David Winterbottom
9c3902c930
Alert tweak
12 anni fa
David Winterbottom
10812f9051
Customer stock alerts now working
12 anni fa
Ignat
11d8db9064
Do not connection when no emails to send
Little optimisation of sending alerts to users.
Do not connection when no emails to send.
12 anni fa
David Winterbottom
ac353f69d8
Fix template issues with stock alert
Product was not resolving properly due to context change.
Fixes #342
Fixes #338
13 anni fa
David Winterbottom
ebf05daf82
Fix issue with send_messages in alerts utils
Wasn't opening the connection first (according to Django's docs). Not
100% this works - we'll see in the sandbox.
13 anni fa
David Winterbottom
9d60bef005
Major rewrite of stock alerts
* They are now known as 'stock alerts' instead of notifications.
* They have been moved into the customer app largely (instead of their
own one).
* The model implementation has been simplified.
13 anni fa