You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

v1.5.rst 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. =======================
  2. Oscar 1.5 release notes
  3. =======================
  4. :release: tbd
  5. Welcome to Oscar 1.5
  6. Table of contents:
  7. .. contents::
  8. :local:
  9. :depth: 1
  10. .. _compatibility_of_1.5:
  11. Compatibility
  12. -------------
  13. Oscar 1.5 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 dropped in this version.
  15. .. _new_in_1.5:
  16. What's new in Oscar 1.5?
  17. ------------------------
  18. - Support for Django 1.11 (:issue:`2221`)
  19. - Google Analytics tracking code has been migrated to Universal Analytics.
  20. - Passwords are validated using the validators defined in
  21. ``AUTH_PASSWORD_VALIDATORS`` for Django 1.9 and above.
  22. Removal of deprecated features
  23. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24. These methods/modules have been removed:
  25. - Profiling middleware. See `silk`_ or `django-cprofile-middleware`_
  26. for alternatives.
  27. - ``Product.min_child_price_incl_tax`` and ``Product.min_child_price_excl_tax``.
  28. - ``oscar.core.logging.handlers.EnvFileHandler()``
  29. - The ``ellipses_page_range`` templatetag. See `django-rangepaginator`_ for an
  30. alternative.
  31. - ``oscar.test.decorators`` module.
  32. - ``oscar.core.utils.compose`` function.
  33. - ``oscar.apps.customer.auth_backends.Emailbackend``. Use
  34. ``oscar.apps.customer.auth_backends.EmailBackend`` instead.
  35. .. _silk: https://github.com/django-silk/silk
  36. .. _django-cprofile-middleware: https://github.com/omarish/django-cprofile-middleware
  37. .. _django-rangepaginator: https://pypi.python.org/pypi/django-rangepaginator/
  38. Minor changes
  39. ~~~~~~~~~~~~~
  40. - Added billing address to user's address book during checkout (:issue:`1532`).
  41. Number of usages for billing and shipping addresses tracked separately:
  42. billing address in ``UserAddress.num_orders_as_billing_address`` field and
  43. shipping address in ``UserAddress.num_order_as_shipping_address``
  44. accordingly.
  45. - Fixed logic for determining "hurry mode" on stock alerts. Hurry mode is now
  46. set if the number of alerts for a product exceeds the quantity in stock,
  47. rather than the other way around.
  48. - Updated search to use the haystack CharField instead of the EdgeNgramField
  49. to fix irrelevant results (:issue:`2128`)
  50. - Updated ``customer.utils.Dispatcher`` to improve the ability to customise
  51. the implementation (:issue:`2303`)
  52. - Fixed logic for determining "hurry mode" on stock alerts. Hurry mode is now
  53. set if the number of alerts for a product exceeds the quantity in stock,
  54. rather than the other way around.
  55. - ``Voucher.date_created`` and ``VoucherApplication.date_created`` model
  56. fields changed from ``DateField`` to ``DateTimeField``. If you use SQLite
  57. database, please make sure to backup data before running migrations, since
  58. due to limited support of column altering, Django re-creates new SQLite
  59. database with new columns and copies into it original data -
  60. https://docs.djangoproject.com/en/1.11/topics/migrations/#sqlite
  61. - Allowed the communication event dispatcher to accept an optional
  62. ``mail_connection`` to use when sending email messages.
  63. - Changed product alerts to be sent using the Communication Event framework.
  64. The old email templates will continue to be supported until Oscar 2.0.
  65. - Product reviews are now deleted if the associated product is deleted.
  66. .. _incompatible_in_1.5:
  67. Backwards incompatible changes in Oscar 1.5
  68. -------------------------------------------
  69. - Formset classes moved to the separate modules, if you import them directly -
  70. please update location or use :meth:`oscar.core.loading.get_classes` for
  71. loading classes (:issue:`1957`).
  72. Next classes have new locations:
  73. - ``BaseBasketLineFormSet``, ``BasketLineFormSet``, ``BaseSavedLineFormSet``,
  74. ``SavedLineFormSet`` moved to
  75. ``oscar.apps.basket.formsets`` module;
  76. - ``BaseStockRecordFormSet``, ``StockRecordFormSet``,
  77. ``BaseProductCategoryFormSet``, ``ProductCategoryFormSet``,
  78. ``BaseProductImageFormSet``, ``ProductImageFormSet``,
  79. ``BaseProductRecommendationFormSet``, ``ProductRecommendationFormSet``,
  80. ``ProductAttributesFormSet`` moved to
  81. ``oscar.apps.dashboard.catalogue.formsets``;
  82. - ``OrderedProductFormSet`` moved to
  83. ``oscar.apps.dashboard.promotions.formsets``; - ``LineFormset`` moved to
  84. ``oscar.apps.wishlists.formsets``.
  85. - ``SimpleAddToBasketForm`` doesn't override the quantity field any
  86. more. Instead, it just hides the field declared by AddToBasketForm
  87. and sets the quantity to one. This means ``SimpleAddToBasketForm``
  88. doesn't need to be overridden for most cases, but please check
  89. things still work as expected for you if you have customized it.
  90. - ``OSCAR_CURRENCY_FORMAT`` setting changed to dictionary form in order to
  91. support multi-currency for currency formatting. You can set `format`,
  92. `format_type` and `currency_digits` in it. Please refer to documentation
  93. for an example.
  94. - Dashboard order list doesn't have shortcut filters any more, pass `status`
  95. parameter instead of `order_status` for the relevant filtering.
  96. - ``GOOGLE_ANALYTICS_ID`` and ``USE_LESS`` settings were renamed into
  97. ``OSCAR_GOOGLE_ANALYTICS_ID`` and ``OSCAR_USE_LESS`` respectively in order
  98. to keep all Oscar settings under common namespace.
  99. - Removed ``display_version`` and ``version`` variables from templates and
  100. template context.
  101. - Offer ``Applicator`` is now loaded from the ``offer.applicator`` module, instead of ``offer.utils``.
  102. Old path is deprecated and won't be supported in the next Oscar versions.
  103. - ``oscar.forms.fields.ExtendedURLField`` no longer accepts a ``verify_exists``
  104. argument.
  105. Dependency changes
  106. ------------------