One-To-Many Example in NDB

后端 未结 4 1999
囚心锁ツ
囚心锁ツ 2021-01-12 08:22

I am trying to create ndb.Model class like Students and subjects

class Subject(ndb.Model):
     name = ndb.StringProperty()

class Student(ndb.Model):
    na         


        
4条回答
  •  再見小時候
    2021-01-12 09:07

    This looks like an old question. In case someone else needs this presently, you should look at Structured Properties https://developers.google.com/appengine/docs/python/ndb/properties#structured. The example is very clear and easy to follow.

提交回复
热议问题