Hi All,

# models.py
from google.appengine.ext     import db
class parent(db.Model):
  t = db.StringProperty(required=True, default=None)

class child(db.Model):
  ref_parent  = db.ReferenceProperty(parent, required=True, default=None,
collection_name="ref_child")


#view.py

from models import child

entity = child.get(key)
return entity.ref_parent.t



It got the* Error: ReferenceProperty failed to be resolved* when I excute
the view.py.

Is anything wrong with my script ? Thanks in advanced !


Best Regards
Tom Wu

--

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


Reply via email to