您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

v3.0.rst 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. - Category slugs can now be edited via the dashboard.
  48. Dependency changes
  49. ~~~~~~~~~~~~~~~~~~
  50. Python package dependencies:
  51. Javascript dependencies:
  52. .. _deprecated_features_in_2.0:
  53. Deprecated features
  54. ~~~~~~~~~~~~~~~~~~~