Re: error in models

2019-08-05 Thread 胡超
Please try to remove the quotation marks in < max_length=‘200’ >. > 在 2019年8月5日,下午7:39,Mudasir Mian 写道: > > Dear Team, > im facing this error in models > help me please > > > -- > You received this message because you are subscribed to the Google Gro

Re: error in models

2019-08-05 Thread DANIEL URBANO DE LA RUA
Is 200 not '200' On Mon, 5 Aug 2019, 17:24 Mudasir Mian Dear Team, > im facing this error in models > help me please > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this grou

Re: error in models

2019-08-05 Thread DANIEL URBANO DE LA RUA
Is an integer not string 200 On Mon, 5 Aug 2019, 17:24 Mudasir Mian Dear Team, > im facing this error in models > help me please > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this

Re: error in models

2019-08-05 Thread rahul verma
e: > >> Dear Team, >> im facing this error in models >> help me please >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving em

Re: error in models

2019-08-05 Thread Eliseo Rodriguez
I believe you just need to remove the parentheses because it just needs a number not a string. Die Empty On Mon, Aug 5, 2019, 10:24 AM Mudasir Mian wrote: > Dear Team, > im facing this error in models > help me please > > -- > You received this message because you are subscr

Re: error in models

2019-08-05 Thread Vijay Khemlani
Remove the quotes On Mon, Aug 5, 2019 at 11:24 AM Mudasir Mian wrote: > Dear Team, > im facing this error in models > help me please > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe

error in models

2019-08-05 Thread Mudasir Mian
Dear Team, im facing this error in models help me please -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To

Re: Raise field error in models clean method

2013-05-20 Thread Jani Tiainen
On Sun, 19 May 2013 06:38:50 -0700 (PDT) Kai Schlamp wrote: > Hello. > > How to raise a `ValidationException` in the models `clean` method? > > def clean(self): > from django.core.exceptions import ValidationError > raise ValidationError({'title': 'not ok'}) > > The above d

Raise field error in models clean method

2013-05-19 Thread Kai Schlamp
Hello. How to raise a `ValidationException` in the models `clean` method? def clean(self): from django.core.exceptions import ValidationError raise ValidationError({'title': 'not ok'}) The above does not add the error to the `title` field (when using a form), but to the non