Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.31 KB

CHANGES.rst

File metadata and controls

42 lines (28 loc) · 1.31 KB

Changes

Upcoming

Backwards-incompatible

  • Now field validators must be callable objects. Before that validators had a validate method that is not longer used to perform a validation.

Highlights

  • Fields default callables can now optionally receive the model as argument
  • Added the inspection module which provides the inspect function that can be used to access the public api of models.Model instances and classes.

0.4.0 (Ago 4, 2013)

Backwards-incompatible

  • Moved the Model.to_dict functionality to dict(model).
  • The Model.validation_errors method now is an interable of field name and validaton error pairs.
  • Removed the Field subfix for all Booby fields. Now use the module as namespace: fields.String.

Highlights

  • Added an is_valid property to Model.
  • The Model instances now are iterables of field name, value pairs.

0.3.0 (Jun 20, 2013)

Highlights

  • When passed a callable object as a field default then the default value for this field in a model instance will be the return value of the given callable.
  • Added the :func:`models.Model.validation_errors` method to get a dict of field name and error message pairs for all invalid model fields.