Forms from model documentation: The importance of the "_unicode_" method of a model
|Reported by:||olimination||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Though you note in the "First steps"-tutorial that the "_unicode-" method is a quite often used method for the Django admin,etc. it would be nice, if you document this in the "Forms from model" documentation too, because the "ModelChoiceField" is using the "_unicode_" method for showing the model items in the html-select-field. If you don't provide this method, the html-select-field will be emtpy. No warnings or similar is showed by Django, its then a bit confusing for a newbie like me :-).
For a newbie like me, it took almost a day to figure this out, because no error/warning have be thrown by Django.
I think it will be helpful for other starting newbies that this behaviour should be explicit documented for the forms documentation.