Browse Source

base_jsonify: typo

13.0
Laurent Mignon (ACSONE) 8 years ago
committed by laurent.corron
parent
commit
0d7442cccd
  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