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.

v3.0.rst 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. Backwards incompatible changes
  25. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26. - The ``StockRecord.price_excl_tax`` field has been renamed to ``StockRecord.price``.
  27. Projects that have forked the ``partner`` app will need to generate their own migration
  28. to rename this field.
  29. Bug fixes
  30. ~~~~~~~~~
  31. Removal of deprecated features
  32. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33. - Several deprecated model fields have been removed in Oscar 3.0:
  34. - ``order.Line.est_dispatch_date``
  35. - ``order.Line.unit_cost_price``
  36. - ``order.Line.unit_retail_price``
  37. - ``partner.StockRecord.cost_price``
  38. - ``partner.StockRecord.price_retail``
  39. Oscar ships with migrations that remove these fields. If you want to continue using them,
  40. please make sure you add the fields back to your forked app before migrating. Projects
  41. that have forked the ``order`` and ``partner`` apps will need to generate their own
  42. migrations to remove these fields.
  43. Minor changes
  44. ~~~~~~~~~~~~~
  45. - Several models were updated to define a default ordering, to avoid issues with inconsistent ordering of
  46. items in the dashboard and elsewhere. Database migrations are required for these changes.
  47. Dependency changes
  48. ~~~~~~~~~~~~~~~~~~
  49. Python package dependencies:
  50. Javascript dependencies:
  51. .. _deprecated_features_in_2.0:
  52. Deprecated features
  53. ~~~~~~~~~~~~~~~~~~~