On Sun, Jan 18, 2015 at 5:35 PM, Collin Anderson <collinmander...@gmail.com>
wrote:

> Hi,
>
> Rename your __unicode__ to __str__. Python 3 doesn't know what
> "__unicode__" is. :)
>
>
​Yep, that did it.​  Interesting that it was working up until now and that
my AJAX calls worked either way.  <shrug>



> You say this works fine:
> >>>
> ​​
> from ccdgen.models import DvBoolean,DvAny, Common, Project
> >>> pcts = DvBoolean.objects.all()
> >>> for p in pcts:
> ...   print(p.prj_name.prj_name)
>
> But django is expecting this also to work:
> >>> pcts = DvBoolean.objects.all()
> >>> for p in pcts:
> ...   print(p.prj_name)
>

​It does now.  It did not before the change above.​


​Thanks,
Tim






============================================
Timothy Cook
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
MLHIM http://www.mlhim.org

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2B%3DOU3U9HyJJYoz6BDtDL9op036F4XtU8iehu6Ah5X_eDeM0QA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to