Re: Error : Ensure this value has at most 30 characters (it has 31) django
В списке pgsql-general по дате отправления:
| От | Adrian Klaver |
|---|---|
| Тема | Re: Error : Ensure this value has at most 30 characters (it has 31) django |
| Дата | |
| Msg-id | 5488510A.9020603@aklaver.com обсуждение исходный текст |
| Ответ на | Error : Ensure this value has at most 30 characters (it has 31) django (VENKTESH GUTTEDAR <venkteshguttedar@gmail.com>) |
| Список | 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.klaver@aklaver.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера