Re: Odd Issue Updating Model Values -- They get wrapped in parenthesis and quotes
Awesome, thanks!
On Jul 13, 11:02 am, "m...@nipltd.com" <m...@nipltd.com> wrote:
> You have a trailing comma on each of your assignment lines which will
> turn the right hand value into a tuple :)
>
>
>
> > if len(line['Youth - First Name']) > 0:
> > youth.name_first=line['Youth - First Name'].title().strip(),
> > if len(line['Youth - Middle Name']) > 0:
> > youth.name_middle=line['Youth - Middle Name'].title().strip(),
> > if len(line['Youth - Last Name']) > 0: youth.name_last=line['Youth
> > - Last Name'].title().strip(),
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home