Hi,
> I would prefer to instead auto-truncate the value (so I don't have an
> exception). Now, I can do this manually, but what I would really want is to
> have all of my models auto-truncate the value. (Not necessarily
> intelligently. Just cutting it off at the 999th character is fine.)
>
>
On 5 août 2010, at 01:35, Samuel Clay wrote:
> I have a field that has a max_length set. When I save a model instance, and
> the field's value is > than max_length, Django enforces that max_length at
> the database level. (See Django docs on models:
> http://docs.djangoproject.com/en/dev/ref/mo
I have a field that has a max_length set. When I save a model instance, and the
field's value is > than max_length, Django enforces that max_length at the
database level. (See Django docs on models:
http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.CharField.max_length)
H
3 matches
Mail list logo