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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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.4 is compatible with Django 1.8, 1.9 and 1.10 as well as Python 2.7,
  14. 3.3, 3.4, 3.5 and 3.6.
  15. .. _new_in_1.5:
  16. What's new in Oscar 1.5?
  17. ------------------------
  18. Removal of deprecated features
  19. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  20. These methods/modules have been removed:
  21. - Profiling middleware. See `silk`_ or `django-cprofile-middleware`_
  22. for alternatives.
  23. - ``Product.min_child_price_incl_tax`` and ``Product.min_child_price_excl_tax``.
  24. - ``oscar.core.logging.handlers.EnvFileHandler()``
  25. - The ``ellipses_page_range`` templatetag. See `django-rangepaginator`_ for
  26. an alternative.
  27. - ``oscar.test.decorators`` module.
  28. - ``oscar.core.utils.compose`` function.
  29. .. _silk: https://github.com/django-silk/silk
  30. .. _django-cprofile-middleware: https://github.com/omarish/django-cprofile-middleware
  31. .. _django-rangepaginator: https://pypi.python.org/pypi/django-rangepaginator/
  32. Minor changes
  33. ~~~~~~~~~~~~~
  34. - Add billing address to user's address book during checkout (:issue:`1532`). Number of usages for billing and shipping
  35. addresses tracked separately: billing address in ``UserAddress.num_orders_as_billing_address`` field
  36. and shipping address in ``UserAddress.num_order_as_shipping_address`` accordingly.
  37. .. _incompatible_in_1.5:
  38. Backwards incompatible changes in Oscar 1.5
  39. -------------------------------------------
  40. - Formset classes moved to the separate modules, if you import them directly - please update location or
  41. use :meth:`oscar.core.loading.get_classes` for loading classes (:issue:`1957`).
  42. Next classes have new locations:
  43. - ``BaseBasketLineFormSet``, ``BasketLineFormSet``, ``BaseSavedLineFormSet``, ``SavedLineFormSet`` moved to
  44. ``oscar.apps.basket.formsets`` module;
  45. - ``BaseStockRecordFormSet``, ``StockRecordFormSet``, ``BaseProductCategoryFormSet``, ``ProductCategoryFormSet``,
  46. ``BaseProductImageFormSet``, ``ProductImageFormSet``, ``BaseProductRecommendationFormSet``,
  47. ``ProductRecommendationFormSet``, ``ProductAttributesFormSet`` moved to ``oscar.apps.dashboard.catalogue.formsets``;
  48. - ``OrderedProductFormSet`` moved to ``oscar.apps.dashboard.promotions.formsets``;
  49. - ``LineFormset`` moved to ``oscar.apps.wishlists.formsets``.
  50. - ``SimpleAddToBasketForm`` doesn't override the quantity field any
  51. more. Instead, it just hides the field declared by AddToBasketForm
  52. and sets the quantity to one. This means ``SimpleAddToBasketForm``
  53. doesn't need to be overridden for most cases, but please check
  54. things still work as expected for you if you have customized it.
  55. - ``OSCAR_CURRENCY_FORMAT`` setting changed to dictionary form in order to support multi-currency for
  56. currency formatting. You can set `format`, `format_type` and `currency_digits` in it.
  57. Please refer to documentation for an example.
  58. - Dashboard order list doesn't have shortcut filters any more, pass `status` parameter instead of
  59. `order_status` for the relevant filtering.
  60. - Google Analytics tracking code has been migrated to Universal Analytics.
  61. - ``GOOGLE_ANALYTICS_ID`` and ``USE_LESS`` settings were renamed into ``OSCAR_GOOGLE_ANALYTICS_ID`` and
  62. ``OSCAR_USE_LESS`` respectively in order to keep all Oscar settings under common namespace.
  63. - Remove ``display_version`` and ``version`` variables from templates and template context.
  64. Dependency changes
  65. ------------------