﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9458	Mising step after adding __unicode__ methods to models; syncdb needs to be re-run.	Brendan_Munnelly	nobody	"Hi Django-ers,

Greetings from Dublin, Ireland.

After adding the __unicode__() method to the Poll and Choice definitions in models.py, I called the Poll.objects.all() method again in the interpreter.

But to no effect :-(

So I:

Exited the interpreter.
Ran python manage.py syncdb
Ran python manage.py shell to restart the interpreter
Re-imported mysite.polls.models import Poll, Choice
And re-ran Poll.objects.all()

And it worked! I got the string representation and not the object.

Wey hey!

You might want to insert in your docs that syscdb needs to be re-run in order for the __unicode__() method to take effect.

Cheers,

Brendan Munnelly"		closed	Uncategorized	1.0		invalid			Unreviewed	0	0	0	0	0	0
