Add note about model validation to draft 1.2 release notes.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12111 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
James Bennett 2010-01-06 05:41:05 +00:00
parent d7d2bdd9e9
commit 24b631d33f
1 changed files with 11 additions and 0 deletions

View File

@ -511,3 +511,14 @@ Customizable syntax highlighting
You can now use the ``DJANGO_COLORS`` environment variable to modify
or disable the colors used by ``django-admin.py`` to provide
:ref:`syntax highlighting <syntax-coloring>`.
Model validation
----------------
Model instances now have support for :ref:`validating their own data
<validating-objects`, and both model and form fields now accept
configurable lists of :ref:`validators <ref-validators>` specifying
reusable, encapsulated validation behavior. Note, however, that
validation must still be performed explicitly: simply invoking a model
instance's ``save()`` method will not perform any validation of the
instance's data.