Browse Source

base_jsonify: typo

pull/1472/head
Laurent Mignon (ACSONE) 8 years ago
committed by Simone Orsi
parent
commit
f16eb48bf1
  1. 2
      base_jsonify/README.rst
  2. 2
      base_jsonify/models/models.py

2
base_jsonify/README.rst

@ -27,7 +27,7 @@ return a list of object even if there is only one element in input
By default the key into the json is the name of the field extracted
from the model. If you need to specify an alternate name to use as key, you
can definne your mapping as follow into the parser definition:
can define your mapping as follow into the parser definition:
.. code-block:: python

2
base_jsonify/models/models.py

@ -36,7 +36,7 @@ def jsonify(self, parser):
By default the key into the json is the name of the field extracted
from the model. If you need to specify an alternate name to use as key, you
can definne your mapping as follow into the parser definition:
can define your mapping as follow into the parser definition:
parser = [
'field_name:json_key'

Loading…
Cancel
Save