summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-05-28 15:11:41 -0400
committerTim Graham <timograham@gmail.com>2013-05-28 15:12:47 -0400
commitded95ccdce0ba983c405ddde9eb071e454245a94 (patch)
tree1f0ebc0a4bb36b01b0e8a830acbe08964b278d73 /docs
parenta2967d5204729771e3716c431ea98f8ee8562d3e (diff)
Fixed #20484 -- Added model validation for GenericIPAddressField
GenericIPAddressField must not allow blank for NOT NULL fields Thanks Erik Romijn.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.6.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/releases/1.6.txt b/docs/releases/1.6.txt
index c01128c684..efc1297265 100644
--- a/docs/releases/1.6.txt
+++ b/docs/releases/1.6.txt
@@ -601,6 +601,13 @@ Miscellaneous
``django.contrib.admindocs.middleware`` because it is an implementation
detail of admindocs, proven not to be reusable in general.
+* :class:`~django.db.models.GenericIPAddressField` will now only allow
+ ``blank`` values if ``null`` values are also allowed. Creating a
+ ``GenericIPAddressField`` where ``blank`` is allowed but ``null`` is not
+ will trigger a model validation error because ``blank`` values are always
+ stored as ``null``. Previously, storing a ``blank`` value in a field which
+ did not allow ``null`` would cause a database exception at runtime.
+
Features deprecated in 1.6
==========================