You must first find the Model1 objects that have the required fieldModel1 value Then get the keys for those models and then find the Model2 objects that have a model1 value that matches one of those keys
2009/4/5 pjfitz <fitzpatrick...@googlemail.com>: > > Hi, > I cannot seem to filter on field names of ReferenceProperty fields. > For example if i have the following two models. > > Model1(db.Model) > fieldModel1 = db.StringProperty() > > Model2(db.Model) > model1 = db.ReferenceProperty(Model1) > > I cannot seem to filter correctly with the following > > q=Model2.all() > q=filter("model1.fieldModel1 =", somevalue) > > Has anyone any suggestions as to why this does not work? > > tks, > PJ > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. 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 -~----------~----~----~----~------~----~------~--~---