Re: ModelForm and a new model instance

2010-07-17 Thread Joel Klabo
That did it! That example was what I was looking for. The error handling led me astray, it's all taken care of. Thanks a lot. On Jul 17, 2:42 am, Karen Tracey wrote: > On Fri, Jul 16, 2010 at 6:27 PM, Joel Klabo wrote: > > I am using modelForm to make a form for my Brew model. The form shows > >

Re: ModelForm and a new model instance

2010-07-17 Thread Karen Tracey
On Fri, Jul 16, 2010 at 6:27 PM, Joel Klabo wrote: > I am using modelForm to make a form for my Brew model. The form shows > up and works fine. And saves it when I call save. But it does not > catch the errors correctly. I set it up mostly based on this example: > > from django.core.validators im

ModelForm and a new model instance

2010-07-16 Thread Joel Klabo
I am using modelForm to make a form for my Brew model. The form shows up and works fine. And saves it when I call save. But it does not catch the errors correctly. I set it up mostly based on this example: from django.core.validators import ValidationError, NON_FIELD_ERRORS try: article.full_c