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.

v0.8.rst 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. ===========================================
  2. Oscar 0.8 release notes - UNDER DEVELOPMENT
  3. ===========================================
  4. Welcome to Oscar 0.8!
  5. Table of contents:
  6. .. contents::
  7. :local:
  8. :depth: 1
  9. .. _overview:
  10. Overview
  11. ========
  12. Oscar now has a demo site customised for the US!
  13. .. _compatibility:
  14. Compatibility
  15. =============
  16. Oscar 0.8 is compatible with Django 1.5-1.7.
  17. Support for Python 2.6 has been dropped; Oscar works with Python 2.7, 3.3
  18. and 3.4.
  19. .. _what_is_new:
  20. What's new in Oscar 0.8?
  21. ========================
  22. Minor cleanup around shipping methods
  23. -------------------------------------
  24. * The models of the shipping app now have abstract base classes, similar to
  25. the rest of Oscar.
  26. * The legacy ``ShippingMethod`` name of the interface of the shipping app has
  27. been removed. Inherit from ``shipping.base.Base`` for the class instead, and
  28. inherit from ``shipping.abstract_models.AbstractBase`` for model-based
  29. shipping methods.
  30. * ``oscar.apps.shipping.Scales`` has been renamed and moved to
  31. ``oscar.apps.shipping.scales.Scale``, and is now overridable.
  32. * ``WeightBand.upper_limit`` is now a ``DecimalField``, just like the other
  33. weight-related fields.
  34. Customisation improvements
  35. --------------------------
  36. Oscar's views are now dynamically imported. This means that they can be
  37. overridden like most other classes in Oscar; overriding the related
  38. Application instance is not necessary any more. Updated instructions are
  39. available in :doc:`/topics/customisation`.
  40. US demo site
  41. ------------
  42. To help developers building sites for the US, a new example Oscar site has been
  43. included in the repo. This customises core Oscar to treat all prices as
  44. excluding tax and then calculate and apply taxes once the shipping address is
  45. known.
  46. See :ref:`us_site` for more information.
  47. .. _minor_changes:
  48. Minor changes
  49. -------------
  50. * The ``OSCAR_CURRENCY_LOCALE`` setting has been removed. The locale is now
  51. automatically determined from the current language. This ensures prices are
  52. always shown in the correct format when switching languages.
  53. * The login and registration view now redirects staff users to the dashboard
  54. after logging in. It also employs flash messages to welcome returning and
  55. newly registered users.
  56. * The basket middleware now assigns a ``basket_hash`` attribute to the
  57. ``request`` instance. This provides a hook for basket caching.
  58. Bugfixes
  59. ~~~~~~~~
  60. .. _backwards_incompatible_changes:
  61. Backwards incompatible changes in 0.8
  62. =====================================
  63. * The ``shipping`` app saw a few renames; please see the section above.
  64. .. _removal_of_deprecated_features:
  65. Removal of features deprecated in 0.8
  66. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  67. Migrations
  68. ~~~~~~~~~~
  69. * Shipping:
  70. - ``0007`` - Change ``WeightBand.upper_limit`` from ``FloatField`` to ``DecimalField``
  71. .. _deprecated_features:
  72. Features deprecated in 0.8
  73. ==========================