<commit_before>.. _changelog:

=========================
Changelog for django-SHOP
=========================


0.11.0
======

* Fix: :class:`shop.rest.renderers.CMSPageRenderer` always uses the template offered by the CMS page,
  rather than invoking method ``get_template_names()`` from the corresponding ``APIView`` class.
* Feature: Add class:`shop.rest.renderers.ShopTemplateHTMLRenderer` which is the counterpart of
  :class:`shop.rest.renderers.CMSPageRenderer`, usable for hardcoded Django views.
* Refactor: In examples *polymorphic* and *i18n_polymorphic*, renamed ``SmartPhone`` to ``SmartPhoneVariant``.
* Feature: In :class:`shop.money.fields.MoneyFormField` use a widget which renders the currency.
* Refactor: In :class:`shop.money.fields.MoneyField`, drop support for implicit default value, since it
  causes more trouble than benefit.
* Fix: Handle non-decimal types in :meth:`shop.money.fields.MoneyField.get_db_prep_save`.
* Fix: In AngularJS, changes on filters and the search field did not work on Safari.
* Fix: In :meth:`shop.views.auth.AuthFormsView.post` create a customer object from request for
  a visiting customers, rather than responding with *BAD REQUEST*.
* Fix: :meth:`shop.models.order.OrderManager.get_summary_url` only worked for views rendered
  as CMS page. Now it also works for static Django views.
* Simplified all methods ``get_urls()`` from all classes derived from ``CMSApp`` by exploiting
  CMS-PR 5898 introduced with django-CMS-3.4.4.
* Remove field ``customer`` from :class:`shop.serializers.order.OrderListSerializer`, since it
  interfered with the ``customer`` object on the global template_context namespace, causing template
  `shop/navbar/login-logout.html` to fail.
* Management command ``fix_filer_bug_965`` is obsolete with django-filer-1.2.8.
* Fix: Use caption in Order Detail View.
* Add Leaflet Map plugin from djangocms-cascade for demonstration purpose.
* Moved ``package.json`` into ``example/package.json`` (and with it ``node_modules``) since it
  shall be part of the project, rather than the Django app.
* Fix: In :meth:`shop.models.order.BaseOrderItem.populate_from_cart_item` the ``unit_price`` is<commit_msg>docs for changes in 0.11.1<commit_after>.. _changelog:

=========================
Changelog for django-SHOP
=========================


0.11.1
======

* Fix migration ``0007_notification`` to handle field ``mail_to`` correctly.
* Allo transition to cancel order only for special targets.


0.11
====

* Fix: :class:`shop.rest.renderers.CMSPageRenderer` always uses the template offered by the CMS page,
  rather than invoking method ``get_template_names()`` from the corresponding ``APIView`` class.
* Feature: Add class:`shop.rest.renderers.ShopTemplateHTMLRenderer` which is the counterpart of
  :class:`shop.rest.renderers.CMSPageRenderer`, usable for hardcoded Django views.
* Refactor: In examples *polymorphic* and *i18n_polymorphic*, renamed ``SmartPhone`` to ``SmartPhoneVariant``.
* Feature: In :class:`shop.money.fields.MoneyFormField` use a widget which renders the currency.
* Refactor: In :class:`shop.money.fields.MoneyField`, drop support for implicit default value, since it
  causes more trouble than benefit.
* Fix: Handle non-decimal types in :meth:`shop.money.fields.MoneyField.get_db_prep_save`.
* Fix: In AngularJS, changes on filters and the search field did not work on Safari.
* Fix: In :meth:`shop.views.auth.AuthFormsView.post` create a customer object from request for
  a visiting customers, rather than responding with *BAD REQUEST*.
* Fix: :meth:`shop.models.order.OrderManager.get_summary_url` only worked for views rendered
  as CMS page. Now it also works for static Django views.
* Simplified all methods ``get_urls()`` from all classes derived from ``CMSApp`` by exploiting
  CMS-PR 5898 introduced with django-CMS-3.4.4.
* Remove field ``customer`` from :class:`shop.serializers.order.OrderListSerializer`, since it
  interfered with the ``customer`` object on the global template_context namespace, causing template
  `shop/navbar/login-logout.html` to fail.
* Management command ``fix_filer_bug_965`` is obsolete with django-filer-1.2.8.
* Fix: Use caption in Order Detail View.
* Add Leaflet Map plugin from djangocms-cascade for demonstration purpose.
* Moved ``package.json`` into ``example/package.json`` (and with it ``node_modules``) since it
  shall be part of the project, rather than the Django app.
* Fix: In :meth:`shop.models.order.BaseOrderItem.populate_from_cart_item` the ``unit_price`` is
{'fraction_non_alphanumeric': 0.12580145920848995, 'fraction_numerical': 0.010833517576829538, 'mean_word_length': 5.389830508474576, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '464386', 'n_tokens_mistral': 1376, 'n_tokens_neox': 1272, 'n_words': 469}