recipe_virtual_field.rst 500 B

123456789101112
  1. Virtual Field Descriptions
  2. ==========================
  3. Some fields including in the various Mappers don't rely on any actual field in
  4. the Model (e.g., ``_action`` or ``batch``).
  5. In order to prevent any side-effects when trying to retrieve the value of this
  6. field (which doesn't exist), the option ``virtual_field`` is specified for these
  7. fields.
  8. When the template is instantiated, or whenever the value of the field is
  9. required, ``null`` will simply be returned without prying on the Model itself.