On Sun, Dec 28, 2008 at 9:02 AM, Alexander Kojevnikov
<alexan...@kojevnikov.com> wrote:

> You can use a custom ModelChoiceField and override its
> label_from_instance() method:

Nice one! The alternative is to define a __str__ method on your
SizeOption class, since that is what is used to render the options in
the default label_from_instance implementation.


Dave.

--~--~---------~--~----~------------~-------~--~----~
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