Hello,

I'm enjoying the tutorial and now I'm stuck on the second page (writing 
your first Django app part 2), shortly after this paragraph.

'It’s important to add __str__() 
<https://docs.djangoproject.com/en/1.9/ref/models/instances/#django.db.models.Model.__str__>
 
methods to your models, not only for your own convenience when dealing with 
the interactive prompt, but also because objects’ representations are used 
throughout Django’s automatically-generated admin.'

The tutorial says to go into the interactive shell again.

This line runs without error.

'from polls.models import Question, Choice'

The next line Question.objects.all() results in

'[<Question: Question object>]' instead of 

'[<Question: What's up?>]'

Any help would be much appreciated.

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3154675a-5749-434e-9fce-3aae49014959%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to