google app engine - How do I make a reference property to a model defined later? -


i have class has db.referenceproperty referencing type of entity defined later in file. how refer b a?

if can't move b above a, can use following workaround:

foo = db.referenceproperty(reference_class=db.model) 

this allows reference class extends db.model. can add validation logic if needed.

you cannot use collection_name attribute reference b.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -