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.7.rst 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. ===========================================
  2. Oscar 0.7 release notes - UNDER DEVELOPMENT
  3. ===========================================
  4. Welcome to Oscar 0.7!
  5. Table of contents:
  6. .. contents::
  7. :local:
  8. :depth: 1
  9. Compatibility
  10. =============
  11. Oscar 0.7 has experimental support for Python 3. Support for Django 1.4 has
  12. been dropped, and support for Django 1.6 is considered stable.
  13. What's new in Oscar 0.7?
  14. ========================
  15. Search improvements
  16. ~~~~~~~~~~~~~~~~~~~
  17. * Search results can be now be sorted
  18. * If you're search backend supports it, spelling suggestions will be shown if
  19. the search term doesn't lead to any results.
  20. * Only products are returned by the core search view. Other content types in
  21. your search index are filtered out (`#370`_).
  22. .. _`#370`: https://github.com/tangentlabs/django-oscar/issues/370
  23. Minor changes
  24. ~~~~~~~~~~~~~
  25. * Customers can delete their profiles from within the account section.
  26. * :attr:`~oscar.core.application.Application.permissions_map` now supports more than two
  27. lists to evaluate permissions.
  28. * Formset handling in
  29. :class:`~oscar.apps.dashboard.catalogue.views.ProductCreateUpdateView` has
  30. been simplified and now easily allows adding further formsets.
  31. * Increased required version of Django Haystack to 2.1
  32. * The dashboard's Bootstrap and the Bootstrap JS has been bumped to 2.3.2, the
  33. latest release of version 2.
  34. * The dashboard's category handling now has the ability to directly create
  35. child categories.
  36. * Oscar's error messages now have their own CSS class, ``error-block``
  37. (`ef3ccf08a7`_).
  38. * It is now possible to disable the redirect that happens when a product or
  39. category's slug changed and an old URL is used (`b920f8ba`_).
  40. * :class:`~oscar.apps.payment.forms.BankCardNumberField` now allows specifying
  41. accepted card types (`32b7249`_).
  42. * Several slug fields have been turned into the newly introduced
  43. :class:`~oscar.models.fields.AutoSlugField` to ensure that generated slugs
  44. are unique.
  45. * Widget initialisation can now be prevented with adding the ``no-widget-init``
  46. class. Issues around widget initialisation in the dashboard promotions have
  47. been resolved.
  48. * The access function used to determine dashboard's menu entries' visibility
  49. is now settable via
  50. :doc:`OSCAR_DASHBOARD_DEFAULT_ACCESS_FUNCTION</ref/settings>`.
  51. .. _`b920f8ba`: https://github.com/tangentlabs/django-oscar/commit/b920f8ba288cd2f19bb167db2a012479ba956397
  52. .. _`ef3ccf08a7`: https://github.com/tangentlabs/django-oscar/commit/ef3ccf08a707ae1250cdb8d5f2dc6f721d020dc4
  53. .. _`32b7249`: https://github.com/tangentlabs/django-oscar/commit/32b7249e44b40cb1b20d01226f77ae6777a20b91
  54. Bugfixes
  55. ~~~~~~~~
  56. * Addresses in non-shipping countries can't be selected as default shipping
  57. address anymore (`be04d46639`_).
  58. * Suspended and consumed offers are no longer returned by the "active" offer
  59. manager. (`#1228`_).
  60. .. _`#1228`: https://github.com/tangentlabs/django-oscar/issues/1228
  61. Backwards incompatible changes in 0.7
  62. =====================================
  63. .. warning::
  64. Fields and models have been removed from Oscar. If you used them, you must
  65. ensure you create/extend the affected models appropriately.
  66. * ``AbstractProduct.status`` was an unused ``CharField`` provided for convenience
  67. as it's a commonly required field. But a different field type was often
  68. required, and as changing it is much harder than adding a field with the
  69. desired type, the field has been removed.
  70. * ``Contributor``, ``ContributorRole``, the through-model ``ProductContributor``
  71. and their abstract versions have been removed as they were unused and too
  72. specific to the domain of book shops.
  73. * ``ProductCategory.is_canonical`` was an unused ``BooleanField`` and has been
  74. removed.
  75. * ``Order.basket_id`` was a ``PositiveIntegerField`` containing the primary key of the
  76. associated basket. It's been refactored to be a nullable ``ForeignKey`` and
  77. is now called "basket".
  78. * `#1123`_ - The URL structure of ``ProductCreateRedirectView`` has been changed to use
  79. the product class' slug instead of the primary key. It's necessary to update
  80. URLs pointing to that view.
  81. .. _`#1123`: https://github.com/tangentlabs/django-oscar/pull/1123
  82. Removal of features deprecated in 0.6
  83. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  84. * Django 1.4 support has been removed.
  85. Renamed templates
  86. ~~~~~~~~~~~~~~~~~
  87. Template block changes
  88. ~~~~~~~~~~~~~~~~~~~~~~
  89. Migrations
  90. ~~~~~~~~~~
  91. * Catalogue:
  92. - ``0014`` - Drops unused ``ProductCategory.is_canonical`` field.
  93. - ``0015`` - Turns a product's UPC field into a :class:`oscar.models.fields.NullCharField`
  94. - ``0016`` - ``AutoSlugField`` for ``AbstractProductClass`` and ``AbstractOption``
  95. - ``0017`` - Removes ``Product.status``, ``Contributor``, ``ContributorRole`` and ``ProductContributor``
  96. * Customer:
  97. - ``0006`` - ``AutoSlugField`` and ``unique=True`` for ``AbstractCommunicationEventType``
  98. * Offer:
  99. - ``0029`` - ``AutoSlugField`` for ``ConditionalOffer``
  100. * Order:
  101. - ``0025`` - ``AutoSlugField`` for ``AbstractPaymentEventType`` and AbstractShippingEventType``
  102. * Partner:
  103. - ``0011`` - ``AutoSlugField`` for ``AbstractPartner``
  104. * Payment:
  105. - ``0003`` - ``AutoSlugField`` and ``unique=True`` for ``AbstractSourceType``
  106. * Shipping:
  107. - ``0006`` - ``AutoSlugField`` for ``ShippingMethod``
  108. Features deprecated in 0.6
  109. ==========================