It should be said that yes, that is normal. p.choice_set.all() is a list of Choice objects, not a list of strings attributes for each object.
-- You're right that it's not a very readable result, which is why the __unicode__ method exists to add a more user-friendly representation of that object for console/Django admin display. Still, don't lose sight of the fact that p.choice_set.all() is actually always returning a collection of Choice objects.
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+unsubscribe@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment