Answered my own question--

Add the following to ModelB:

def __unicode__(self):
   return self.modelBReadableName

(basically have the unicode method return the property with the
readable name of ModelB)...

-s

On Feb 17, 3:03 pm, Savraj <sav...@gmail.com> wrote:
> I'm using webapp, it's totally awesome. One quick question.
>
> So I have a model, ModelA, and one of the properties for ModelA is
> "itemtype," a reference property that references an instance of
> ModelB.
>
> When I create a form to edit the properties of an instance of ModelA,
> I get a dropdown box for "itemtype" that let's me choose the instance
> of Model B. Awesome!!! Totally awesome, automatic behavior.
>
> One problem though -- The instances of Model B are listed as
> "<Models.ModelB object at 0x122331>,<Models.ModelB object at
> 0x12321123>, etc"
>
> I know the fix is to override the form field for 'itemtype' in my
> ModelAForm class -- but since webapp is doing some cool magic here I'm
> not sure of the correct override.  Can someone help?
>
> Thanks for your help!!!
>
> -S
> palo alto, ca
--~--~---------~--~----~------------~-------~--~----~
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