> You can use a custom ModelChoiceField and override itslabel_from_instance() 
> method:
>
> class SizeOptionChoiceField(ModelChoiceField):
>     deflabel_from_instance(self, obj):
>         return obj.code


Sorry, I'm a bit late to the game but i just ran into this thread and
wanted to ask that have you been able to use label_from_instance() in
GAE? I used to use it Django but in GAE it just doesn't get called
ever. That's why I have been using __unicode__ as well. Has anybody
ran into this issue?

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to