Skip to content

Commit

Permalink
fix error in sphinx-build
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed May 11, 2020
1 parent 16b2562 commit 8b13768
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Changelog for django-SHOP
* Refactored views for adding product to cart and changing quantity in cart so that the purchasing
quantity can not exceed the quantity in stock.
* The default commodity product now keeps track of the quantity in stock.
* Changed the signature of the methods :method:`shop.modifiers.base.CartModifierBase.pre_process_cart`
and :method:`shop.modifiers.base.CartModifierBase.pre_process_cart_item` to take an extra boolean
* Changed the signature of the methods :meth:`shop.modifiers.base.CartModifierBase.pre_process_cart`
and :meth:`shop.modifiers.base.CartModifierBase.pre_process_cart_item` to take an extra boolean
parameter.
* Remove sub-serializer ``availability`` from product, because now it is handled internally by the
class :class:`shop.serializers.defaults.catalog.AddToCartSerializer`.
Expand All @@ -61,7 +61,7 @@ Changelog for django-SHOP
1.0.1
=====

* Fix error in admin interface for ``Notification``detail view.
* Fix error in admin interface for ``Notification`` detail view.
* Refactor all internal model checks to use classmethod ``check()`` provided by Django.


Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Reference to classes and concepts used in **django-SHOP**
reference/deferred-models
reference/money-types
reference/product-models
reference/stock-management
reference/inventory
reference/catalog
reference/search
reference/filters
Expand Down
3 changes: 3 additions & 0 deletions docs/reference/catalog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ To test if that serializer works properly, we can examine the raw content of the
appending ``?format=api`` to the URL of our catalog view. This then renders a human readable
representation of the context as JSON.

.. _thumb: https://easy-thumbnails.readthedocs.io/en/latest/usage/#thumbnail-tag


Customizing the Product Summary Serializer
..........................................
Expand Down Expand Up @@ -264,6 +266,7 @@ bigger effort, rather than creating a specific template for each product type.
When rendering a product's detail page, the ``ProductRetrieveView`` looks for a template suitable
for the given product type, following these rules:
* look for a template named :samp:`{app_label}>/catalog/{product-model-name}-detail.html` [4]_ [5]_,
otherwise
* look for a template named :samp:`{app_label}/catalog/product-detail.html` [4]_, otherwise
Expand Down

0 comments on commit 8b13768

Please sign in to comment.