Skip to content

Commit

Permalink
Fix documentation: correct inclusion of code example
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Jacobs committed Jun 13, 2019
1 parent 9267563 commit 807c814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/usage/customizing_oscarapi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ setting would look like this::
OSCARAPI_OVERRIDE_MODULES = ["demosite.mycustomapi"]

Let's see what happens in the checkout serializer file
``demosite.mycustomapi.serializers.checkout``::
``demosite.mycustomapi.serializers.checkout``:

.. literalinclude:: ../../../demosite/mycustomapi/serializers/checkout.py
.. literalinclude:: ../../../demosite/demosite/mycustomapi/serializers/checkout.py

So this override would add a field to the json of a country called
``is_benelux_country``, and the content would be ``true`` when the country is in the Benelux.
Expand Down

0 comments on commit 807c814

Please sign in to comment.