class Model2(db.Model):
model1 = db.ReferenceProperty(Model1, collection_name = 'model2s')
....
class Model3(db.Model):
model1 = db.ReferenceProperty(Model1, collection_name = 'model3s')
....
Would this be the best way to get all of Model1's collection_names?
collection_names = [name for name in dir(Model1) if isinstance(getattr(Model1,name), db.Query)]
Is there a better way?