Re: Error : Ensure this value has at most 30 characters (it has 31) django

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: VENKTESH GUTTEDAR <venkteshguttedar(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: Error : Ensure this value has at most 30 characters (it has 31) django
Date: 2014-12-10 13:56:26
Message-ID: 5488510A.9020603@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/10/2014 04:38 AM, VENKTESH GUTTEDAR wrote:
> Hello,
>
> I am using DJango 1.7 and Postgresql 9.3.5.
>
> I am trying to store email in the username field of
> django.contrib.auth.models.User.
> but when i try to store more than 30 characters i am getting this
> error : Ensure this value has at most 30 characters (it has 31) django
> i tried changing the max length to 75 of username field of
> auth_user. but still i am getting the same error.
> Please help me to solve this

On my install of Django 1.7 the email field is already varchar(75).

Are you updating from a previous version of Django?

Did you run python manage.py sycndb ?

Also where are you trying to insert the data from?

If from a form have you checked the field validation code for the email
field?

>
> --
> Regards :
> Venktesh Guttedar.
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2014-12-10 14:27:51 Re: Fwd: Fwd: Problem with pg_dump and decimal mark
Previous Message David G Johnston 2014-12-10 13:55:04 Re: Error : Ensure this value has at most 30 characters (it has 31) django