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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. ========================================
  2. Oscar 3.0 release notes (in development)
  3. ========================================
  4. :release: TBD
  5. Welcome to Oscar 3.0!
  6. .. contents::
  7. :local:
  8. :depth: 1
  9. .. _compatibility_of_3.0:
  10. Compatibility
  11. ~~~~~~~~~~~~~
  12. .. _new_in_3.0:
  13. What's new in Oscar 3.0?
  14. ~~~~~~~~~~~~~~~~~~~~~~~~
  15. - Support has been added to the ``catalogue.Option`` model to define the
  16. type of option. This is used by the ``AddToBasketForm`` to determine the appropriate form field to display for that
  17. option in the add-to-cart form. Currently supported types are: text, integer, float, boolean, and date.
  18. The ``type`` field on the ``Option`` model (previously used to denote whether the option is required)
  19. has been repurposed to store the type of the option, and a new ``required`` field
  20. has been added to denote whether the option is required. Projects that have forked the catalogue app will
  21. need to generate custom migrations for these model field changes.
  22. Projects should pay close attention to the data migration provided in
  23. ``catalogue/migrations/0019_option_required.py`` for this change.
  24. - Added support for restricted combinations of offers. When creating an offer in the dashboard,
  25. administrators can now define a restricted set of other offers that offer can be used in combination with.
  26. This changes introduces a new ``combinations`` field on the ``Offer`` model which requires a database migration.
  27. Backwards incompatible changes
  28. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  29. - The ``StockRecord.price_excl_tax`` field has been renamed to ``StockRecord.price``.
  30. Projects that have forked the ``partner`` app will need to generate their own migration
  31. to rename this field.
  32. Bug fixes
  33. ~~~~~~~~~
  34. - ``catalogue.product_attributes.ProductAttributesContainer`` was refactored to ensure that attributes
  35. inside the container are always properly loaded at initialisation. The container is now wrapped in a
  36. ``SimpleLazyObject`` when assigned to ``Product.attr``. ``ProductAttributesContainer.initiate_attributes()``
  37. was removed as the database query now happens on instantiation.
  38. Removal of deprecated features
  39. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  40. - Several deprecated model fields have been removed in Oscar 3.0:
  41. - ``order.Line.est_dispatch_date``
  42. - ``order.Line.unit_cost_price``
  43. - ``order.Line.unit_retail_price``
  44. - ``partner.StockRecord.cost_price``
  45. - ``partner.StockRecord.price_retail``
  46. Oscar ships with migrations that remove these fields. If you want to continue using them,
  47. please make sure you add the fields back to your forked app before migrating. Projects
  48. that have forked the ``order`` and ``partner`` apps will need to generate their own
  49. migrations to remove these fields.
  50. Minor changes
  51. ~~~~~~~~~~~~~
  52. - Several models were updated to define a default ordering, to avoid issues with inconsistent ordering of
  53. items in the dashboard and elsewhere. Database migrations are required for these changes.
  54. - Category slugs can now be edited via the dashboard.
  55. - A new method ``get_attribute_values()`` was added to the Product model which returns a merged set of
  56. attribute values for child and parent products.
  57. - The behaviour of ``checkout.views.ThankYouView`` when no order is found in the session has changed,
  58. to redirect the user to the URL defined by ``settings.OSCAR_HOMEPAGE`` instead of returning a page not found error.
  59. Dependency changes
  60. ~~~~~~~~~~~~~~~~~~
  61. Python package dependencies:
  62. Javascript dependencies:
  63. .. _deprecated_features_in_2.0:
  64. Deprecated features
  65. ~~~~~~~~~~~~~~~~~~~