On Sun, May 21, 2006 at 10:17:52AM +1000, Malcolm Tredinnick wrote: > If you also want to say "it is optional to enter this in the admin > interface", then you also need to set blank = True on the field (this > won't require any change to your database: it only affects the > interface).
Perhaps the option "blank" should not even be used -- use "required=False" instead of "blank=True" (and vice versa of course)... i.e. isn't it more clear to say that entering some value for this field either is or is not required...? -- Glenn X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.54.131.8 with SMTP id e8mr162423wrd; Sat, 20 May 2006 23:16:38 -0700 (PDT) Return-Path: <[EMAIL PROTECTED]> Received: from zardoz.think.org (gateway.think.org [205.179.127.12]) by mx.googlegroups.com with ESMTP id v23si580662cwb.2006.05.20.23.16.37; Sat, 20 May 2006 23:16:38 -0700 (PDT) Received-SPF: pass (googlegroups.com: domain of [EMAIL PROTECTED] designates 205.179.127.12 as permitted sender) Received: from zardoz.think.org (localhost [127.0.0.1]) by zardoz.think.org (8.12.3/8.12.3/Debian-7.2) with ESMTP id k4L6Ga02010261 for <django-users@googlegroups.com>; Sat, 20 May 2006 23:16:36 -0700 Received: (from [EMAIL PROTECTED]) by zardoz.think.org (8.12.3/8.12.3/Debian-7.2) id k4L6GaSK010259 for django-users@googlegroups.com; Sat, 20 May 2006 23:16:36 -0700 Date: Sat, 20 May 2006 23:16:36 -0700 From: Glenn Tenney <[EMAIL PROTECTED]> To: django-users@googlegroups.com Subject: Re: null=True conditionally Message-ID: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: text/plain In-Reply-To: <[EMAIL PROTECTED]> On Sun, May 21, 2006 at 10:17:52AM +1000, Malcolm Tredinnick wrote: > If you also want to say "it is optional to enter this in the admin > interface", then you also need to set blank = True on the field (this > won't require any change to your database: it only affects the > interface). Perhaps the option "blank" should not even be used -- use "required=False" instead of "blank=True" (and vice versa of course)... i.e. isn't it more clear to say that entering some value for this field either is or is not required...? -- Glenn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---