Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

v3.1.rst 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. =======================
  2. Oscar 3.1 release notes
  3. =======================
  4. :release: 2021-07-16
  5. .. contents::
  6. :local:
  7. :depth: 1
  8. .. _compatibility_of_3.1:
  9. Compatibility
  10. ~~~~~~~~~~~~~
  11. Oscar 3.1 is compatible with Django 2.2, Django 3.1 and Django 3.2 and Python versions 3.6 to 3.9.
  12. Support for Django 3.0 has been dropped.
  13. .. _new_in_3.1:
  14. What's new in Oscar 3.1?
  15. ~~~~~~~~~~~~~~~~~~~~~~~~
  16. Improvements have been made to the dashboard interface for creating and editing offers, vouchers, and voucher sets.
  17. These better expose the flexible implementation of offer and voucher functionality, allowing:
  18. - creation of offers of all types
  19. - creation of vouchers with multiple offers
  20. - creation of voucher sets of all usages, and with multiple offers
  21. Details of these changes can be found in the :ref:`Changes to "dashboard.offers" and "dashboard.vouchers" apps
  22. <changes_to_dashboard_offers_and_dashboard_vouchers_apps>` section below.
  23. .. _changes_to_dashboard_offers_and_dashboard_vouchers_apps:
  24. Changes to ``dashboard.offers`` and ``dashboard.vouchers`` apps
  25. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26. The ``dashboard.offers`` and ``dashboard.vouchers`` apps have been reworked significantly. There have also been changes
  27. to the related models, signals, and utility functions in the ``offer`` and ``voucher`` apps.
  28. You should review these changes [we'll insert a link to the commit here once it is merged], especially if you have made customisations that depends on these apps, as some are backwards incompatible. The functional changes are summarised below.
  29. - The dashboard offer list view now displays all types of offer (previously voucher offers were hidden), with the
  30. ability to filter the list based on type.
  31. - The dashboard offer creation and update views now allow creation of offers of all types (previously only site-wide
  32. offers could be created). This exposes the full flexibility of Oscar's offer types in the dashboard. Note that a new
  33. setting (``OSCAR_OFFERS_IMPLEMENTED_TYPES``) has been added, which restricts the selectable types to ones that Oscar
  34. currently implements.
  35. - The dashboard voucher creation and edit views have been signficiantly refactored. Previously, a conditional offer
  36. (and associated benefit/condition) was created automatically when creating a new voucher. This is no longer the case
  37. and instead the offers must be created separately in advance of assigning them to a voucher. These views now allow
  38. assigning multiple offers to a voucher, exposing the full flexibility of this app.
  39. - The create view for voucher sets has been changed to no longer create a conditional offer on the fly. As with
  40. vouchers, the offer has to be created separately before being assigned to the voucher set.
  41. - The logic for generating vouchers for voucher sets has been moved from the ``save`` method of the ``VoucherSet`` into
  42. the form logic for the dashboard form. This removes a potentially unsafe and unexpected generation of new vouchers
  43. when a voucher set is saved from outside the dashboard.
  44. - ``offer.signals`` has been renamed to ``offer.receivers`` for consistency with other apps.
  45. - ``voucher.signals.delete_unused_related_conditional_offer`` has been removed.
  46. - ``voucher.utils.get_offer_name`` has been removed, as voucher-type offers are no longer automatically created,
  47. updated, and deleted.
  48. .. _removal_of_deprecated_features_in_3.1:
  49. Removal of deprecated features
  50. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  51. - The ``catalogue.Option.is_required`` property is removed. Check ``Option.required`` instead.
  52. - The ``oscar.apps.dashboard.catalogue.views.filter_products`` utility function has been removed. Use the
  53. methods provided by ``PartnerProductFilterMixin`` instead.
  54. - The ``basket.AbstractLine.is_available_for_discount`` property is removed. Use ``is_available_for_offer_discount()``
  55. instead.
  56. .. _minor_changes_in_3.1:
  57. Minor changes
  58. ~~~~~~~~~~~~~
  59. - ``AbstractProductAttributeValue.value_boolean`` has changed from a deprecated ``NullBooleanField`` to a
  60. ``BooleanField``. This requires a database migration.
  61. - A ``refresh()`` method was added to ``ProductAttributesContainer`` to allow refreshing attribute information
  62. from the database without reinitialising the ``Product`` object.
  63. - The deprecated ``providing_args`` argument has been removed from all of Oscar's signals.
  64. - ``oscar.apps.customer.alerts.utils.AlertsDispatcher`` is now imported dynamically to allow overriding.
  65. - The utility functions in ``oscar.apps.customer.history`` for reading to and writing from Oscar's recently
  66. viewed products cookie have been refactored into a dynamically loaded ``CustomerHistoryManager`` class that
  67. projects can override.
  68. - The dashboard catalogue search results now include products whose children match the searched parameters.
  69. .. _dependency_changes_in_3.1:
  70. Dependency changes
  71. ~~~~~~~~~~~~~~~~~~
  72. Python package dependencies:
  73. - Upgraded ``django-phonenumber-field`` to version 3.0.
  74. - Upgraded ``factory-boy`` to version 3.0.
  75. Javascript and CSS dependencies:
  76. - Upgraded ``bootstrap`` to version 4.6.0.
  77. - Upgraded ``jquery`` to version 3.6.0.
  78. - Upgraded ``tinymce`` to version 5.7.