Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. =======================
  2. Oscar 1.6 release notes
  3. =======================
  4. :release: 2018-05-23
  5. Welcome to Oscar 1.6
  6. Table of contents:
  7. .. contents::
  8. :local:
  9. :depth: 1
  10. .. _compatibility_of_1.6:
  11. Compatibility
  12. -------------
  13. Oscar 1.6 is compatible with Django 1.11 and Django 2.0 as well as Python 2.7, 3.4,
  14. 3.5 and 3.6.
  15. Official support for Django 1.8, 1.9 and 1.10 has been dropped.
  16. .. _new_in_1.6:
  17. What's new in Oscar 1.6?
  18. ------------------------
  19. - Added support for managing large amounts of vouchers grouped in sets.
  20. Removal of deprecated features
  21. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22. - ``oscar.core.phonenumber.PhoneNumber`` is removed.
  23. Use ``phonenumber_field.phonenumber.PhoneNumber`` instead.
  24. - Removed the redundant ``OSCAR_PROMOTION_MERCHANDISING_BLOCK_TYPES`` setting.
  25. Minor changes
  26. ~~~~~~~~~~~~~
  27. - The majority of the Oscar class imports now use dynamic loading, instead of
  28. direct imports, for better extensibility and customisability.
  29. - Added the ability to specify a custom class loader through the
  30. ``OSCAR_DYNAMIC_CLASS_LOADER`` setting.
  31. - Customer transaction emails were reworked to use Mailgun templates, so that
  32. they have a more modern appearance.
  33. - ``SearchHandler.get_search_form`` method now accepts additional
  34. keyword arguments, which will be passed on search form class instance.
  35. - Added ``get_stock_info`` hook to ``oscar.apps.basket.models.Basket`` for
  36. implementing strategies that depend on product options.
  37. - Fixed the page create/update views in the dashboard to correctly validate
  38. URLs. Invalid characters in URLs will raise a validation error, as will
  39. URLs longer than 100 characters.
  40. - The default shipping method
  41. ( ``oscar.apps.basket.views.BasketView.get_default_shipping_address``)
  42. on the basket summary page now uses the user's default shipping address to
  43. calculate an indicative shipping cost.
  44. - Fixed ``ExtendedURLValidator`` for locale-prefixed URLs for locales, different
  45. from current (see :issue:`1481`). Previously, validation did not pass when
  46. if the current locale was "en-gb" and, the a visited URL was "/de/catalogue/"
  47. and visa versa due to Django's default behaviour.
  48. - Product attribute value save is now handled by separate methods, to make it
  49. easier to override this behaviour.
  50. - Address hash generation is now separated from the summary in order to
  51. preserve same behavior when summary property customized (see :issue:`1537`).
  52. They can use different field names, listed out in `base_fields` and
  53. `hash_fields` respectively. Also hash generation now became
  54. platform-independent and generates the same for Python 2 and 3.
  55. Corresponding data migration will update hashes automatically. Take it into
  56. account that it will take time to run if you have large user base.
  57. - Compact basket form is no longer displayed for the products with options
  58. on product list pages since it caused form elements to impose inside the
  59. product box (see :issues:`1976`).
  60. - Added ``has_options`` property to the
  61. ``oscar.apps.catalogue.models.Product`` model to indicate whether an
  62. instance or its product class has product options.
  63. - ``oscar.core.validators.validate_password`` was removed.
  64. Use ``django.contrib.auth.password_validation.validate_password`` instead.
  65. - ``oscar.core.validators.CommonPasswordValidator`` was removed. Use ``django.contrib.auth.password_validation.CommonPasswordValidator`` instead.
  66. - User notifications are marked as read only when viewed in detail, instead of
  67. being marked as read in bulk when the notification list was viewed.
  68. - Oscar's ``ImageInput``, ``TimePickerInput``, ``DatePickerInput`` and
  69. ``DateTimePickerInput`` all use templates for rendering.
  70. - It is now possible to manage images for variant products and their parents.
  71. - For variant products we now display their own images on product detail page
  72. and fallback to parent product images if they don't have any.
  73. - Basket line form quantity field now has "max" attribute with the maximum
  74. allowed quantity in it based on product availability and basket threshold
  75. (see :issue:`1412`).
  76. - An unused setting ``OSCAR_SETTINGS`` was removed from ``oscar.core.defaults``.
  77. - Fixed ``PhoneNumberMixin``s handling of empty phone number fields in forms.
  78. .. _incompatible_in_1.6:
  79. Backwards incompatible changes in Oscar 1.6
  80. -------------------------------------------
  81. - Fixed a regression introduced in Oscar 1.5 (see :issue:`2664`) where
  82. ``StockRequired.availability_policy`` was dependent on the product
  83. having a price. Price and availability are now decoupled, and it is possible
  84. to defer determination of a price until a product is added to the basket.
  85. - ``oscar.apps.customer.auth_backends.EmailBackend`` now rejects inactive users
  86. (where ``User.is_active`` is ``False``).
  87. - ``EmailBackend`` no longer enforces its own password strength validation,
  88. and relies instead on the ``AUTH_PASSWORD_VALIDATORS`` setting used by Django.
  89. - ``oscar.apps.basket.middleware.BasketMiddleware`` was rewritten as new-style
  90. middleware for Django 1.11.
  91. - ``oscar.apps.offer.models.ConditionalOffer`` now has a new flag
  92. ``exclusive`` to denote that the offer involved can not be combined on the
  93. same item on the same basket line with another offer.
  94. This flag is used by ``oscar.apps.basket.utils.LineOfferConsumer``, a facade
  95. that supercedes the old ``oscar.apps.basket.models.Line._affected_items`` counter,
  96. and replaces it with a more finegrained approach. This makes it possible to apply
  97. two distinct non-exclusive offers on the same basketline items, for example
  98. multiple distinct vouchers.
  99. A couple of methods on the basketline model have been extended with an
  100. optional ``offer`` argument, i.e. ``discount`` and ``consume``, so if you
  101. are using a customized basketline model, you have to update your methods'
  102. signatures.
  103. - Invalid URL names supplied to the ``OSCAR_DASHBOARD_NAVIGATION`` setting
  104. are now logged as an exception (previously they were silently ignored).
  105. The offending menu item will be skipped during menu rendering.
  106. In Oscar 1.8 the exception will be raised without being intercepted.
  107. - All signals are now loaded directly rather than using dynamic imports.
  108. - Stock manipulation (allocation/consumption/cancellation) now only happens if
  109. the ``track_stock`` property of the product's class is set to true.
  110. - ``oscar.forms.widgets.RemoteSelect`` was updated to work with version 4 of
  111. select2. Instead of rendering a hidden input it now renders a normal
  112. ``select`` element.
  113. - The django-extra-views dependency was upgraded to version 0.11, and the
  114. basket views that rely on ``extra_views.ModelFormSetView`` updated to use the
  115. new factory_kwargs attribute.
  116. - jQuery UI was removed from Oscar's static files. Projects that require it
  117. should install it at the project level.
  118. - Compatibility for Internet Explorer version 9 an lower was dropped from Oscar's
  119. templates and styles.
  120. - The Google Analytics tracking code provided by Oscar now uses ``gtag.js`` API
  121. instead of the deprecated ``analytics.js``. Analytics are also disabled by
  122. default in Oscar's dashboard.
  123. Dependency changes
  124. ------------------
  125. - Upgraded jQuery to version 3.3.1.
  126. - Upgraded Bootstrap to version 3.3.7.
  127. - Upgraded bootstrap-datetimepicker to v2.4.4.
  128. - Upgraded jQuery-mousewheel to v3.1.13.
  129. - Upgraded inputmask to v3.2.7.
  130. - Upgraded jquery-sortable to v0.9.13.
  131. - Upgraded select2 to v4.0.5.
  132. .. _deprecated_features_in_1.6:
  133. Deprecated features
  134. ~~~~~~~~~~~~~~~~~~~
  135. The following features have been deprecated in this release:
  136. - ``StockRecord.price_excl_tax`` will be renamed into ``StockRecord.price`` in
  137. Oscar 2.0. Please see :issue:`1962` for more details.
  138. - The ``StockRecord.price_retail`` and ``StockRecord.cost_price`` fields are
  139. deprecated and will be removed in Oscar 2.0.
  140. - The ``order.Line.est_dispatch_date``, ``order.Line.line_price_incl_tax``,
  141. ``order.Line.unit_retail_price``, ``order.Line.unit_cost_price`` and
  142. ``order.Line.line_price_excl_tax`` fields are deprecated and will be removed
  143. in Oscar 2.0.
  144. - ``oscar.views.decorators.staff_member_required`` is deprecated. Use
  145. ``oscar.views.decorators.permissions_required(['is_staff'])`` instead.
  146. - Support for Django 1.8, 1.9 and 1.10 has been dropped in line with the
  147. Django project recommendation for third party apps.