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.6.1.rst 1.3KB

1234567891011121314151617181920212223242526272829303132333435
  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, all foreign keys on the ``Order`` model specify
  14. ``on_delete=SET_NULL`` to avoid orders being deleted accidentally.
  15. See `Django's docs`_ for more info on ``on_delete`` options.
  16. Bug fixes
  17. =========
  18. The following bugs were fixed:
  19. * `#1128`_ - Calls to ``Source.debit`` without an ``amount`` argument were
  20. failing as ``balance`` was being called as a method instead of a property.
  21. * `#1130`_ - Variant products were not fetching the product class instance
  22. correctly within ``is_shipping_required``.
  23. .. _`#1128`: https://github.com/tangentlabs/django-oscar/issues/1128
  24. .. _`#1130`: https://github.com/tangentlabs/django-oscar/issues/1130
  25. .. _`Django's docs`: https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.on_delete