|
@@ -17,7 +17,7 @@ Table of contents:
|
17
|
17
|
.. _overview_of_0.8:
|
18
|
18
|
|
19
|
19
|
Overview
|
20
|
|
-========
|
|
20
|
+--------
|
21
|
21
|
|
22
|
22
|
Oscar now has a demo site customised for the US!
|
23
|
23
|
|
|
@@ -34,7 +34,7 @@ availability logic now needs to be handled with strategies.
|
34
|
34
|
.. _compatibility_of_0.8:
|
35
|
35
|
|
36
|
36
|
Compatibility
|
37
|
|
-=============
|
|
37
|
+-------------
|
38
|
38
|
|
39
|
39
|
Oscar 0.8 is compatible with Django 1.5-1.7.
|
40
|
40
|
|
|
@@ -44,10 +44,10 @@ and 3.4.
|
44
|
44
|
.. _new_in_0.8:
|
45
|
45
|
|
46
|
46
|
What's new in Oscar 0.8?
|
47
|
|
-========================
|
|
47
|
+------------------------
|
48
|
48
|
|
49
|
49
|
Customisation just got easier!
|
50
|
|
-------------------------------
|
|
50
|
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
51
|
51
|
|
52
|
52
|
* Oscar's views are now dynamically imported. This means that they can be
|
53
|
53
|
overridden like most other classes in Oscar; overriding the related
|
|
@@ -61,7 +61,7 @@ Customisation just got easier!
|
61
|
61
|
overhaul to incorporate the changes.
|
62
|
62
|
|
63
|
63
|
Reworked shipping app
|
64
|
|
----------------------
|
|
64
|
+~~~~~~~~~~~~~~~~~~~~~
|
65
|
65
|
|
66
|
66
|
Several parts of the shipping app have been changed. The most important is a
|
67
|
67
|
change to the API of shipping methods to avoid a potential thread safety issue.
|
|
@@ -86,7 +86,7 @@ for the shipping app and the
|
86
|
86
|
for more information.
|
87
|
87
|
|
88
|
88
|
US demo site
|
89
|
|
-------------
|
|
89
|
+~~~~~~~~~~~~
|
90
|
90
|
|
91
|
91
|
To help developers building sites for the US, a new example Oscar site has been
|
92
|
92
|
included in the repo. This customises core Oscar to treat all prices as
|
|
@@ -96,7 +96,7 @@ known.
|
96
|
96
|
See :ref:`us_site` for more information.
|
97
|
97
|
|
98
|
98
|
Basket additions clean-up
|
99
|
|
--------------------------
|
|
99
|
+~~~~~~~~~~~~~~~~~~~~~~~~~
|
100
|
100
|
|
101
|
101
|
The forms and views around adding things to your basket has been vigorously
|
102
|
102
|
reworked. This cleans up some very old code there and ensures variant products
|
|
@@ -107,7 +107,7 @@ The changes do require changing the constructor signature of the
|
107
|
107
|
:ref:`basket_app_changes`.
|
108
|
108
|
|
109
|
109
|
Checkout improvements
|
110
|
|
----------------------
|
|
110
|
+~~~~~~~~~~~~~~~~~~~~~
|
111
|
111
|
|
112
|
112
|
The checkout process now skips payment if the order total is zero (e.g. when
|
113
|
113
|
ordering free products or using a voucher). As part of that, checkout views
|
|
@@ -115,7 +115,7 @@ now evaluate *pre-conditions* (as before) and newly introduced
|
115
|
115
|
*skip conditions*. This should make customising the checkout flow easier.
|
116
|
116
|
|
117
|
117
|
Cleanup around shipping methods
|
118
|
|
--------------------------------
|
|
118
|
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
119
|
119
|
|
120
|
120
|
* The models of the shipping app now have abstract base classes, similar to
|
121
|
121
|
the rest of Oscar.
|
|
@@ -138,7 +138,7 @@ Cleanup around shipping methods
|
138
|
138
|
.. _minor_changes_in_0.8:
|
139
|
139
|
|
140
|
140
|
Minor changes
|
141
|
|
--------------
|
|
141
|
+~~~~~~~~~~~~~
|
142
|
142
|
|
143
|
143
|
* The ``OSCAR_CURRENCY_LOCALE`` setting has been removed. The locale is now
|
144
|
144
|
automatically determined from the current language. This ensures prices are
|
|
@@ -166,12 +166,12 @@ Minor changes
|
166
|
166
|
.. _incompatible_changes_in_0.8:
|
167
|
167
|
|
168
|
168
|
Backwards incompatible changes in 0.8
|
169
|
|
-=====================================
|
|
169
|
+-------------------------------------
|
170
|
170
|
|
171
|
171
|
.. _incompatible_shipping_changes_in_0.8:
|
172
|
172
|
|
173
|
173
|
Shipping
|
174
|
|
---------
|
|
174
|
+~~~~~~~~
|
175
|
175
|
|
176
|
176
|
The shipping method API has been altered to avoid potential thread-safety
|
177
|
177
|
issues. Prior to v0.8, shipping methods had a ``set_basket`` method which
|
|
@@ -227,7 +227,7 @@ Other potentially breaking changes related to shipping include:
|
227
|
227
|
``oscar.apps.shipping.scales.Scale``, and is now overridable.
|
228
|
228
|
|
229
|
229
|
Misc
|
230
|
|
-----
|
|
230
|
+~~~~
|
231
|
231
|
|
232
|
232
|
* The ``oscar_calculate_scores`` command has been `rewritten`_ to use the ORM
|
233
|
233
|
instead of raw SQL. That exposed a bug in the previous calculations,
|
|
@@ -250,7 +250,7 @@ Misc
|
250
|
250
|
.. _rewritten: https://github.com/tangentlabs/django-oscar/commit/d8b4dbfed17be90846ea4bc47b5f7b39ad944c24
|
251
|
251
|
|
252
|
252
|
Basket line stockrecords
|
253
|
|
-------------------------
|
|
253
|
+~~~~~~~~~~~~~~~~~~~~~~~~
|
254
|
254
|
|
255
|
255
|
The basket line model got a reference to the stockrecord in Oscar 0.6. The
|
256
|
256
|
basket middleware since then updated basket lines to have stockrecords if
|
|
@@ -290,7 +290,7 @@ are no nulls in your ``basket_line`` table:
|
290
|
290
|
.. _basket_app_changes:
|
291
|
291
|
|
292
|
292
|
Basket app changes
|
293
|
|
-------------------
|
|
293
|
+~~~~~~~~~~~~~~~~~~
|
294
|
294
|
|
295
|
295
|
- The ``basket:add`` URL now required the primary key of the "base" product to
|
296
|
296
|
be included. This allows the same form to be used for both GET and POST
|
|
@@ -306,7 +306,7 @@ Basket app changes
|
306
|
306
|
.. _8ba283e8: https://github.com/tangentlabs/django-oscar/commit/8ba283e8c4239e4eff95da5e8097a17ecfadf5f5
|
307
|
307
|
|
308
|
308
|
Migrations
|
309
|
|
-----------
|
|
309
|
+~~~~~~~~~~
|
310
|
310
|
|
311
|
311
|
* Catalogue:
|
312
|
312
|
|
|
@@ -329,7 +329,7 @@ Migrations
|
329
|
329
|
.. _deprecated_features_in_0.8:
|
330
|
330
|
|
331
|
331
|
Removal of deprecated features
|
332
|
|
-------------------------------
|
|
332
|
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
333
|
333
|
|
334
|
334
|
These methods have been removed:
|
335
|
335
|
|