Hi Bruce,

I believe what you are trying to achieve is best accomplished using 
the db.ReferenceProperty(Person).

class Person(db.Model):
  name= db.StringProperty()
  addressStreet= db.StringProperty()
  email = db.StringProperty()

class Teacher(db.Model):
  employeeNumber = db.StringProperty()
  person = db.ReferenceProperty(Person)

Then the reference would be to teacher.person.name

Michael

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/BTD-nhg59JgJ.
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