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

From: David G Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
To: 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:55:04
Message-ID: 1418219704246-5829917.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

This is a validation error your django middleware is issuing - you need to
fix the problem there. Or maybe there is some other field that is being
checked besides auth_user...

David J.

--
View this message in context: http://postgresql.nabble.com/Error-Ensure-this-value-has-at-most-30-characters-it-has-31-django-tp5829910p5829917.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2014-12-10 13:56:26 Re: Error : Ensure this value has at most 30 characters (it has 31) django
Previous Message VENKTESH GUTTEDAR 2014-12-10 12:38:14 Error : Ensure this value has at most 30 characters (it has 31) django