Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

v0.6.1.rst 3.5KB

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