選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

v0.6.1.rst 3.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. .. spelling::
  2. Transifex
  3. =========================
  4. Oscar 0.6.1 release notes
  5. =========================
  6. This is Oscar 0.6.1. It fixes one potentially serious data loss issue and a
  7. few minor bugs.
  8. Possible data loss from deleted users
  9. -------------------------------------
  10. Before this release, the foreign key from the
  11. :class:`~oscar.apps.order.abstract_models.Order` model to the ``User`` model
  12. did not specify an ``on_delete`` behaviour. The default is for deletes to
  13. cascade to related objects, even if the field is nullable. Hence, deleting a
  14. user would also delete any orders they had placed.
  15. As of 0.6.1, the foreign keys to user, shipping address and billing address on
  16. the ``Order`` model specify ``on_delete=SET_NULL`` to avoid orders being
  17. deleted accidentally.
  18. See `Django's docs`_ for more info on ``on_delete`` options.
  19. Missing translations
  20. ~~~~~~~~~~~~~~~~~~~~
  21. The 0.6 release failed to include several translations from Transifex due to a
  22. problem in the way we updated translation files before release. This
  23. release rectifies that and includes the latest translation files.
  24. Known issues
  25. ============
  26. * Django 1.4 only: The changes in `#1127`_ mean you explicitly need to register
  27. a call to ``migrate_alerts_to_users`` when the ``post_save`` signal is
  28. emitted for a ``User`` model.
  29. Bug fixes
  30. =========
  31. The following bugs were fixed:
  32. * `#1109`_ - Workaround for a bug in Bootstrap regarding the collapsing of the
  33. navigation bar.
  34. * `#1121`_ - Added a confirmation view to removing products from wish lists
  35. because one can't POST to it in all cases.
  36. * `#1127`_ required that the ``migrate_alerts_to_user`` function is now
  37. explicitly called in Oscar's base User class. It previously was wired up as
  38. a ``post_save`` signal receiver on the User model, which does not work in
  39. Django 1.5+.
  40. * `#1128`_ - Calls to ``Source.debit`` without an ``amount`` argument were
  41. failing as ``balance`` was being called as a method instead of a property.
  42. * `#1130`_ - Variant products were not fetching the product class instance
  43. correctly within ``is_shipping_required``.
  44. * `#1132`_ and `#1149`_ - Rich text attributes were not supported. Should be
  45. displayed correctly now. Also introduced hooks for adding support for e.g.
  46. ``file`` and ``image`` types.
  47. * `#1133`_ - The order detail page for anonymous checkouts failed to render if
  48. reviews were disabled.
  49. * `#1134`_ - Fixed a bug caused where Unicode characters in child products'
  50. titles were incorrectly handled.
  51. * `#1138`_ - Adjust the
  52. :class:`~oscar.apps.shipping.models.OrderAndItemCharges` shipping method to
  53. not count lines that don't require shipping.
  54. * `#1146`_ - Various templates were adjusted to gracefully handle deleted
  55. products.
  56. .. _`#1109`: https://github.com/django-oscar/django-oscar/issues/1109
  57. .. _`#1121`: https://github.com/django-oscar/django-oscar/issues/1121
  58. .. _`#1127`: https://github.com/django-oscar/django-oscar/issues/1127
  59. .. _`#1128`: https://github.com/django-oscar/django-oscar/issues/1128
  60. .. _`#1130`: https://github.com/django-oscar/django-oscar/issues/1130
  61. .. _`#1132`: https://github.com/django-oscar/django-oscar/issues/1132
  62. .. _`#1133`: https://github.com/django-oscar/django-oscar/issues/1133
  63. .. _`#1134`: https://github.com/django-oscar/django-oscar/issues/1134
  64. .. _`#1138`: https://github.com/django-oscar/django-oscar/issues/1138
  65. .. _`#1146`: https://github.com/django-oscar/django-oscar/issues/1146
  66. .. _`#1149`: https://github.com/django-oscar/django-oscar/issues/1149
  67. .. _`Django's docs`: https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.on_delete