Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. =======================
  2. Oscar 0.6 release notes
  3. =======================
  4. Welcome to Oscar 0.6!
  5. These release notes cover the `new features`_ as well as `upgrading advice`_.
  6. .. _`new features`: `What's new in Oscar 0.6?`_
  7. .. _`upgrading advice`: `Upgrading`_
  8. Overview
  9. ========
  10. ...
  11. What's new in Oscar 0.6?
  12. ========================
  13. The payment models have been split into abstract- and concrete versions. This
  14. brings them inline with other Oscar apps and allows them to be customised.
  15. Multiple-stockrecords, pricing, tax, availability
  16. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17. Search
  18. ~~~~~~
  19. Multi-partner dashboard
  20. ~~~~~~~~~~~~~~~~~~~~~~~
  21. Partners can now have addresses. These are useful for US sales tax where tax
  22. calculations need to know the origin of a product being shipped.
  23. Demo site
  24. ~~~~~~~~~
  25. Oscar now ships with a demo site along side the sandbox site. While the sandbox
  26. is a minimal Django project that uses Oscar with all its defaults, the demo site
  27. is a more realistic example of an Oscar project. It has a custom skin and makes
  28. many alterations to the default Oscar behaviour.
  29. It's features include:
  30. * A range of different product types: books, downloads, clothing
  31. * PayPal Express integration using django-oscar-paypal_
  32. * Datacash integration using django-oscar-datacash_
  33. .. _django-oscar-paypal: https://github.com/tangentlabs/django-oscar-paypal
  34. .. _django-oscar-datacash: https://github.com/tangentlabs/django-oscar-datacash
  35. Further reading:
  36. * :doc:`The demo site </internals/sandbox>`.
  37. Django 1.5 and custom user model support
  38. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  39. Oscar now supports `custom user models`_, the headline new feature in Django 1.5. These can be used standalone
  40. or with a one-to-one profile model: Oscar's account forms inspect the model
  41. fields to dynamically pick up the fields for editing and display.
  42. There are some restrictions on what fields a custom user model must have. For
  43. instance, Oscar's default auth backend requires the user model to have an email
  44. and password field. New Oscar projects are encouraged to use the provided
  45. abstract user model as the base for their users.
  46. Further reading:
  47. * :doc:`How to use a custom user model </howto/use_a_custom_user_model>`.
  48. .. _`custom user models`: https://docs.djangoproject.com/en/dev/topics/auth/customizing/#specifying-a-custom-user-model
  49. .. _`documentation on user models`: https://docs.djangoproject.com/en/dev/topics/auth/customizing/#specifying-a-custom-user-model
  50. Accounts
  51. ~~~~~~~~
  52. The views and templates of the accounts section have been reworked to be clearer
  53. and easier to extend.
  54. Better bankcard handling
  55. ~~~~~~~~~~~~~~~~~~~~~~~~
  56. The bankcard model in the payment app has been greatly improved.
  57. Order processing changes
  58. ~~~~~~~~~~~~~~~~~~~~~~~~
  59. There are changes to order processing methods
  60. Minor changes
  61. ~~~~~~~~~~~~~
  62. * detox_ is a new dependency, which allows running `tox` tests in parallel.
  63. .. _detox: https://pypi.python.org/pypi/detox
  64. Upgrading
  65. =========
  66. Templatetags:
  67. * The ``basket_form`` templatetag has been altered to take the ``request`` as the
  68. first argument, not ``request.basket``.
  69. Templates:
  70. * The template ``customer/email/email.html`` has been renamed to
  71. ``customer/email/email_detail.html``.
  72. * The template ``customer/orders/order.html`` has been renamed to
  73. ``customer/orders/order_detail.html``.
  74. * The template ``dashboard/orders/order_detail.html`` has been reorganised. The
  75. ``tab_transactions`` block has been renamed to ``payment_transactions``.
  76. * Alternative product class templates now use ``slug` field instead of
  77. ``name.lower()`` to determine their filename. If you have templates for
  78. specific product classes, please update your filenames accordingly
  79. Address app:
  80. * The ``UserAddress.salutation`` and ``UserAddress.name`` methods are now
  81. properties.
  82. * ``Country`` model's `is_highlighted` column is now integer field to allow
  83. fine-grained country selection. 0 = no highlighting
  84. Checkout app:
  85. * Checkout has a new option "Register and continue". Option value `new` in
  86. `GatewayForm` has changed to `guest` as `new` option is used for this feature.
  87. * Payment details - create_billing_address accepts kwargs so data can be passed
  88. to it from the final page of checkout.
  89. * The session methods for loading shipping addresses and methods have been made
  90. explicit. The relevant basket *has* to be passed in now.
  91. Payment app:
  92. * The `balance` method on the source object is not a property not a method.
  93. URLs
  94. ~~~~
  95. The named search URL ``search_default`` is renamed to ``search-default`` for
  96. consistency with the rest of Oscar.
  97. Migrations
  98. ~~~~~~~~~~
  99. There are new migrations in the following apps to be aware of.
  100. * Catalogue:
  101. - ``0011``: Higher ``max_length`` on FileFields and ImageFields
  102. * Promotions:
  103. - ``0003``: Higher ``max_length`` on FileFields and ImageFields
  104. * Address:
  105. - ``0003``: ``Country``'s ``is_highlighted`` is now an integer to allow
  106. finer control.
  107. * Order app:
  108. - The `date` field of the ``order.AbstractCommunicationEvent``, ``order.AbstractPaymentEvent`` and
  109. ``order.AbstractShippingEvent`` models have been renamed to ``date_created`` for
  110. consistency with the rest of Oscar.