Ver código fonte

Document the reworking of basket additions

master
David Winterbottom 11 anos atrás
pai
commit
c8aaaf4c58
1 arquivos alterados com 33 adições e 5 exclusões
  1. 33
    5
      docs/source/releases/v0.8.rst

+ 33
- 5
docs/source/releases/v0.8.rst Ver arquivo

@@ -17,6 +17,10 @@ Overview
17 17
 
18 18
 Oscar now has a demo site customised for the US!
19 19
 
20
+Things that have been heavily rewritten:
21
+
22
+- Adding product to the basket
23
+
20 24
 Lots of methods deprecated in the 0.6 release have now been removed.
21 25
 Specifically, the partner "wrapper" functionality is now gone. All price and
22 26
 availability logic now needs to be handled with strategies.
@@ -60,6 +64,17 @@ known.
60 64
 
61 65
 See :ref:`us_site` for more information.
62 66
 
67
+Basket additions clean-up
68
+-------------------------
69
+
70
+The forms and views around adding things to your basket has been vigorously
71
+reworked. This cleans up some very old code there and ensures variant products
72
+are handled in a consistent way.
73
+
74
+The changes do require changing the constructor signature of the
75
+``AddToBasketForm`` - the details are documented in the
76
+:ref:`basket_app_changes`.
77
+
63 78
 Cleanup around shipping methods
64 79
 -------------------------------
65 80
 
@@ -101,9 +116,6 @@ Minor changes
101 116
   forgotten when adding tracking of the Python and Django version in 0.7.
102 117
   Total information collected now is the versions of Django, Python and Oscar.
103 118
 
104
-Bugfixes
105
-~~~~~~~~
106
-
107 119
 .. _incompatible_changes_in_0.8:
108 120
 
109 121
 Backwards incompatible changes in 0.8
@@ -145,10 +157,26 @@ are no nulls in your ``basket_line`` table:
145 157
         else:
146 158
             line.delete()
147 159
 
148
-.. _removal_of_deprecated_features:
160
+.. _basket_app_changes:
161
+
162
+Basket app changes
163
+------------------
164
+
165
+- The ``basket:add`` URL now required the primary key of the "base" product to
166
+  be included. This allows the same form to be used for both GET and POST
167
+  requests for variant products.
168
+
169
+- The ``ProductSelectionForm`` is no longer used and has been removed.
170
+
171
+- The constructor of the :class:`~oscar.apps.basket.forms.AddToBasketForm` has
172
+  been adjusted to take the basket and the purchase info tuple as parameters
173
+  instead of the request instance (c74f57bf_ and 8ba283e8_).
174
+
175
+.. _c74f57bf: https://github.com/tangentlabs/django-oscar/commit/c74f57bf434661877f4d2d2259e7e7eb18b34951#diff-d200ac8746274e0307f512af886e1f3eR148
176
+.. _8ba283e8: https://github.com/tangentlabs/django-oscar/commit/8ba283e8c4239e4eff95da5e8097a17ecfadf5f5
149 177
 
150 178
 Migrations
151
-~~~~~~~~~~
179
+----------
152 180
 
153 181
 * Shipping:
154 182
 

Carregando…
Cancelar
Salvar