Re: Can't get error to display when using inlineformset_factory.

2017-04-26 Thread Andrew Michael
ror('state': 'Must select state if province is not entered.') > > > > or > > raise ValidationError({'state': 'Must select state if province is not > entered.'}) > > > > > > *From:* django...@googlegroups.com

Can't get error to display when using inlineformset_factory.

2017-04-25 Thread Andrew Michael
I am trying to get validation errors to appear on my web page when using an inlineformset_factory. I have a main form called PersonalInformation form and 3 inline forms (Relative, PositionHeld and Phone). I am receiving the main form errors on my page, but I can't get the 3 inline forms to displ

Re: How to handle values_list?

2013-10-18 Thread Andrew Michael
> Leonardo Giordani > Author of The Digital Cat <http://lgiordani.github.com> > My profile on About.me <http://about.me/leonardo.giordani> - My GitHub > page <https://github.com/lgiordani> - My Coderwall > profile<https://coderwall.com/lgiordani> > > >

Re: How to handle values_list?

2013-10-17 Thread Andrew Michael
Unfortunately, that did not work. When I put that in the template I get nothing for name, not even [u'Green']. Any other thoughts? On Thursday, October 17, 2013 4:19:57 PM UTC-4, ke1g wrote: > > Try: > > {{ name.0.name }} > > > On Thu, Oct 17, 2013 at 2:30 P

How to handle values_list?

2013-10-17 Thread Andrew Michael
Hi, I am new to Django and need some help. My issue is on my web page the data is showing up like this: [u'Green'] and I want it to only show Green - without the unicode wrapping. Can you please explain why this is happening and how do I fix it? Here is my code. *models.py:* Class Name(mo