On Fri, Oct 24, 2008 at 11:26 AM, omat <[EMAIL PROTECTED]> wrote:
>
> Thanks for the reply Karen.
>
> Accepted but not used? Neither in the model nor in the forms? This is
> not how I would expect it to be.
Yes, that's the way it is. max_length is specified as a possible keyword
argument in dja
Any reason? Seems pretty basic and easy to limit TextField length. On code
and db level.
On Fri, Oct 24, 2008 at 5:09 PM, Karen Tracey <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 24, 2008 at 10:24 AM, omat <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi,
>>
>> I have a form class derived from a model using Mo
Thanks for the reply Karen.
Accepted but not used? Neither in the model nor in the forms? This is
not how I would expect it to be.
Then, how can I limit a, say comment field to 500 chars in a djangoic
way?
Thanks...
--
omat
On Oct 24, 6:09 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On
On Fri, Oct 24, 2008 at 10:24 AM, omat <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a form class derived from a model using ModelForm.
>
> The model has a TextField(max_length=300) field, but length limit is
> not taken into account and the form passes validation when texts > 300
> char are submi
Hi,
I have a form class derived from a model using ModelForm.
The model has a TextField(max_length=300) field, but length limit is
not taken into account and the form passes validation when texts > 300
char are submitted. Same when submitting through admin.
Is max_length not used for TextField?
5 matches
Mail list logo