Jean-Tiare Le Bigot  committed efe43a7

add some precision about the constructor

  • Participants
  • Parent commits 7bc28ca

Comments (0)

Files changed (1)

File docs/api/model.rst

 >>> data = MyModel()
 >>> data.key = u"foo/bar"
+Initial values can even be specified directly in the constructor. Otherwise, unless
+:ref:`defaults are provided <using-default-values>`, all fields are set to ``None``
+>>> data = MyModel(key=u"foo/bar")
+>>> print data.key
 About keys
 creation date if needed. For more background on the querying system, please see
 the :ref:`accessing data <accessing-data>` section of this manual.
+.. _using-default-values:
 Default values