Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. =======================
  2. Oscar 1.6 release notes
  3. =======================
  4. :release: tbd
  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.8, 1.10 and 1.11 as well as Python 2.7,
  14. 3.3, 3.4, 3.5 and 3.6. Support for Django 1.9 is no longer officialy supported
  15. since it is longer supported by Django (end of life).
  16. .. _new_in_1.6:
  17. What's new in Oscar 1.6?
  18. ------------------------
  19. Removal of deprecated features
  20. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21. - Removed ``OSCAR_PROMOTION_MERCHANDISING_BLOCK_TYPES`` setting since
  22. merchandising block promotions, which used it, already removed for a while.
  23. Minor changes
  24. ~~~~~~~~~~~~~
  25. - Majority of the Oscar imports now using dynamic loading, instead of
  26. direct importing for better extensibility and customizability, except
  27. signals.
  28. - Customer transaction emails reworked on top of mailgun layout and has
  29. better look.
  30. - ``SearchHandler.get_search_form`` method now accepts additional
  31. keyword arguments, which will be passed on search form class instance
  32. initiation.
  33. - Added ``get_stock_info`` hook to ``oscar.apps.basket.models.Basket`` for
  34. implementing strategies that depend on product options.
  35. - Fixed the page create/update views in the dashboard to correctly validate
  36. URLs. Invalid characters in URLs will raise a validation error, as will
  37. URLs longer than 100 characters.
  38. .. _incompatible_in_1.6:
  39. Backwards incompatible changes in Oscar 1.6
  40. -------------------------------------------
  41. - ``oscar.apps.customer.auth_backends.EmailBackend`` now rejects inactive users
  42. (where ``User.is_active`` is ``False``).
  43. - ``oscar.apps.offer.models.ConditionalOffer`` now has a new flag
  44. ``exclusive`` to denote that the offer involved can not be combined on the
  45. same item on the same basket line with another offer.
  46. This flag is used by ``oscar.apps.basket.utils.LineOfferConsumer``, a facade
  47. that supercedes the old ``oscar.apps.basket.models.Line._affected_items`` counter,
  48. and replaces it with a more finegrained approach. This makes it possible to apply
  49. two distinct non-exclusive offers on the same basketline items, for example
  50. multiple distinct vouchers.
  51. A couple of methods on the basketline model have been extended with an
  52. optional ``offer`` argument, i.e. ``discount`` and ``consume``, so if you
  53. are using a customized basketline model, you have to update your methods'
  54. signatures.
  55. - Invalid URL names supplied to the ``OSCAR_DASHBOARD_NAVIGATION`` setting
  56. are now logged as an exception (previously they were silently ignored).
  57. The offending menu item will be skipped during menu rendering.
  58. In Oscar 1.8 the exception will be raised without being intercepted.
  59. - All signals are now loaded directly.
  60. Dependency changes
  61. ------------------
  62. .. _deprecated_features_in_1.6:
  63. Deprecated features
  64. ~~~~~~~~~~~~~~~~~~~
  65. The following features have been deprecated in this release:
  66. * ``StockRecord.price_excl_tax`` will be renamed into ``StockRecord.price`` in
  67. Oscar 2.0. Please see :issue:`1962` for more details.