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 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 submitted. Same when submitting through admin.
>
> > Is max_length not used for TextField? Is it something supported at db
> > level?
>
> > I am using sqlite and django 1.0.
>
> max_length is not used for TextFields.
>
> Karen
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to