]> git.ozlabs.org Git - patchwork/commit
models: Don't require optional model fields in forms
authorDirk Wallenstein <halsmit@t-online.de>
Sun, 16 Jan 2011 23:46:48 +0000 (23:46 +0000)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 11 Feb 2011 01:08:34 +0000 (09:08 +0800)
commitab21927af7fa4003a0da8986c8448cb4cb134d6c
treee28006dccf88f4fc91cbeb7945ca7fdab00781bb
parent47c56dfaceefaa44e5057236a5b63a05f68a981d
models: Don't require optional model fields in forms

Add blank = True for nullable fields, to allow forms to be subitted
without a value for these fields.

The keyword 'blank' concerns only validation and does not change what
will be stored in the database.

Signed-off-by: Dirk Wallenstein <halsmit@t-online.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/models.py