diff --git a/docs/release-notes/0.10.rst b/docs/release-notes/0.10.rst deleted file mode 100644 index 5ccf7c111..000000000 --- a/docs/release-notes/0.10.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. _release-notes/0.10: - -============================== -Release notes for version 0.10 -============================== - - -Upgrading to 0.10 -================= - -This version requires **django-CMS** version 3.4.2 or higher and **djangocms-cascade** version -0.12.0 or higher. It is well tested with Django-1.10 but should work as well with Django-1.9. - -There has been a lot of effort in getting a cleaner and more consistent API. If you upgrade from -version 0.9 please note the following changes: - -The REST serializers have been moved into their own submodule ``shop.serializers``. They now are -separated into ``bases`` and ``defaults`` following the same naming convention as beeing used -in ``shop.models`` and ``shop.admin``. Please ensure that you change your import statements. - -Serializers ``ProductCommonSerializer``, ``ProductSummarySerializer`` and ``ProductDetailSerializer`` -have been unified into a single ``ProductSerializer``, which acts as default for the -``ProductListView`` and the ``ProductRetrieveView``. The ``ProductSummarySerializer`` (which is used -to serialize attributes available across all products of the site) now must be configured using the -settings directive ``SHOP_PRODUCT_SUMMARY_SERIALIZER``. - -All Angular directives have been checked for HTML5 mode compatibility. It is strongly recommended -over hashbang mode. - -Billing and shipping address have been unified into one single address form which makes them easier -to interchange. The ``salutation`` field has been removed from the address model and can now -optionally be added to the merchant representation. - -All AngularJS directives for the catalog list and catalog search view support infinite scroll, as -well as manual pagination. - -After upgrading to **angular-ui-bootstrap** version 0.14, all corresponding directives have to be -prefixed with ``uib-...``. - -There is no more need for a special URL pattern to handle auto-completion search. Instead use the -wrapping view :class:`shop.search.views.CMSPageCatalogWrapper`. - -The model ``CartItem`` has a new CharField ``product_code``. This replaces the ``product_code``, -which optionally is kept inside its ``extra`` dict. This requires to simplify some templates -implementing ``{{ somevar.extra.product_code }}`` into ``{{ somevar.product_code }}``; it applies to -the cart, the add-to-cart and the order templates. Also check for ``ProductSerializer``-s -implemented for products with variations. - -Look for methods implementing ``get_product_variant`` since its signature changed. - -requires a database migration by the -merchant implementation. Such a migration file must contain a datamigration, for instance: - -.. code-block:: python - - from django.db import migrations, models - - def forwards(apps, schema_editor): - CartItem = apps.get_model('myshop', 'CartItem') - for item in CartItem.objects.all(): - item.product_code = item.extra.get('product_code', '') - item.save() - - - def backwards(apps, schema_editor): - CartItem = apps.get_model('myshop', 'CartItem') - for item in CartItem.objects.all(): - item.extra['product_code'] = item.product_code - item.save() - - - class Migration(migrations.Migration): - - dependencies = [ - ('myshop', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='cartitem', - name='product_code', - field=models.CharField(blank=True, help_text='Product code of added item.', max_length=255, null=True, verbose_name='Product code'), - ), - migrations.RunPython(forwards, reverse_code=backwards), - ] - diff --git a/docs/release-notes/0.11.rst b/docs/release-notes/0.11.rst deleted file mode 100644 index babfecb3f..000000000 --- a/docs/release-notes/0.11.rst +++ /dev/null @@ -1,15 +0,0 @@ -.. _release-notes/0.11: - -============================== -Release notes for version 0.11 -============================== - -Since some payment providers require to have an existing order object before the payment is -fulfilled, method ``OrderManager.create_from_cart()`` does not invoke the method -``order.populate_from_cart()`` anymore. This now must be performed by the payment service provider -in two steps: - -.. code-block:: python - - order = OrderModel.objects.create_from_cart(cart, request) - order.populate_from_cart(cart, request) diff --git a/docs/release-notes/0.9.rst b/docs/release-notes/0.9.rst deleted file mode 100644 index 07919740b..000000000 --- a/docs/release-notes/0.9.rst +++ /dev/null @@ -1,84 +0,0 @@ -.. _release-notes/0.9: - -============================= -Release notes for version 0.9 -============================= - - -0.9.2 -===== - -The default address models have changed in 0.9.2. If you are upgrading from -0.9.0 or 0.9.1 and your project is using the default address models, you need -to add a migration to make the necessary changes to your models: - -.. code-block:: bash - - ./manage.py makemigrations --empty yourapp - -Next, edit the migration file to look like this: - -.. code-block:: python - - from django.db import models, migrations - - - class Migration(migrations.Migration): - - dependencies = [ - # makemgirations will generate the dependencies for you. - ] - - operations = [ - migrations.RenameField("ShippingAddress", "addressee", "name"), - migrations.RenameField("ShippingAddress", "street", "address1"), - migrations.RenameField("ShippingAddress", "supplement", "address2"), - migrations.RenameField("ShippingAddress", "location", "city"), - - migrations.AlterField("ShippingAddress", "name", models.CharField( - verbose_name="Full name", max_length=1024 - )), - migrations.AlterField("ShippingAddress", "address1", models.CharField( - verbose_name="Address line 1", max_length=1024 - )), - migrations.AlterField("ShippingAddress", "address2", models.CharField( - verbose_name="Address line 2", max_length=1024 - )), - migrations.AlterField("ShippingAddress", "city", models.CharField( - verbose_name="City", max_length=1024 - )), - - migrations.RenameField("BillingAddress", "addressee", "name"), - migrations.RenameField("BillingAddress", "street", "address1"), - migrations.RenameField("BillingAddress", "supplement", "address2"), - migrations.RenameField("BillingAddress", "location", "city"), - - migrations.AlterField("BillingAddress", "name", models.CharField( - verbose_name="Full name", max_length=1024 - )), - migrations.AlterField("BillingAddress", "address1", models.CharField( - verbose_name="Address line 1", max_length=1024 - )), - migrations.AlterField("BillingAddress", "address2", models.CharField( - verbose_name="Address line 2", max_length=1024 - )), - migrations.AlterField("BillingAddress", "city", models.CharField( - verbose_name="City", max_length=1024 - )), - ] - - -Finally, apply the migration:: - - ./manage.py migrate yourapp - - -0.9.3 -===== - -This version requires **djangocms-cascade** 0.11.0 or higher. Please ensure to run the migrations -which convert the Cascade elements: - -.. code-block:: bash - - ./manage.py migrate shop diff --git a/docs/release-notes/index.rst b/docs/release-notes/index.rst deleted file mode 100644 index bb5df2923..000000000 --- a/docs/release-notes/index.rst +++ /dev/null @@ -1,13 +0,0 @@ -.. _release-notes: - -============= -Release Notes -============= - -.. toctree:: - :maxdepth: 3 - :reversed: - - 0.9 - 0.10 - 0.11 diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index 5830f4ca8..000000000 --- a/docs/requirements.txt +++ /dev/null @@ -1,38 +0,0 @@ -alabaster==0.7.12 -atomicwrites==1.3.0 -attrs==18.2.0 -babel==2.6.0 -bleach==3.1.0 -certifi==2019.11.28 -chardet==3.0.4 -coverage==4.5.2 -docutils==0.14 -filelock==3.0.10 -idna==2.8 -imagesize==1.1.0 -jinja2==2.10.3 -markupsafe==1.1.0 -more-itertools==6.0.0; python_version > '2.7' -packaging==19.0 -pkginfo==1.5.0.1 -pluggy==0.8.1 -py==1.7.0 -pygments==2.3.1 -pyparsing==2.3.1 -pytest-django==3.4.3 -pytest==4.3.0 -pytz==2018.9 -readme-renderer==24.0 -requests-toolbelt==0.9.1 -requests==2.21.0 -six==1.12.0 -snowballstemmer==1.2.1 -sphinx==1.8.4 -sphinxcontrib-websupport==1.1.0 -toml==0.10.0 -tox==3.7.0 -tqdm==4.31.1 -twine==1.13.0 -urllib3==1.25.7 -virtualenv==16.4.0 -webencodings==0.5.1