David Winterbottom
0dc6816a93
Extract functionality from oscar.test into separate package
Fixes #376
13 vuotta sitten
David Winterbottom
d9944c2660
Rework availability logic to use less DB queries
* Fixes bug with prefetch_related where looking up secondary relations
raises a DoesNotExist exception.
* Reworks cached partner map to use PKs instead of names.
Availability logic from product class is looked up in product obj
rather than in wrapper to avoid unnecessary queries.
13 vuotta sitten
David Winterbottom
2ffc10e0ce
Adjust default lead time to be None
It's potentially confusing to have it default to a value as you might
miss this in your project.
13 vuotta sitten
David Winterbottom
372d44b336
Rework partner tests for readability
13 vuotta sitten
David Winterbottom
90a1cad1dc
Smooth journey for buying a digital product
This involves:
* Better checkout templates
* Updated availability logic for products with no stock
* Updated dashboard templates
13 vuotta sitten
David Winterbottom
3507b07374
Altered default partner wrapper to not specify a dispatch date
Turns out this is a bit confusing. Better for it to do nothing by
default and this behaviour can be enabled when it is needed.
13 vuotta sitten
David Winterbottom
79b2da4737
Fixed #258 - Added handing of null values in num_allocated.
13 vuotta sitten
David Winterbottom
feb8c9a327
Moved tests into separate package.
Also split them into unit and functional tests.
13 vuotta sitten