Hi!

I have a model with a different "kind" than the class name, like:

class TripDS(ndb.Model):

    @classmethod
    def _get_kind(cls):
        return "Trip"


When I query `TripDS`, with a complex query, I get an error saying I need 
an index.

If I deploy and wait for the index to be built like this:

```
- kind: Trip
  properties:
  - name: firstProperty
  - name: secondProperty
```

The index is built, but still the application throws an error whenever I 
try the complex query. If I deploy it with the kind `TripDS` then it works 
correctly.

I'm not sure this is expected behavior, as the name of the entity kind in 
the datastore is `Trip` not `TripDS`. And also, if I inspect the index, I 
see the `Trip` index has a size>0, and the `TripDS` index has a size=0.

What I suspect is happening is that the index is really built when I deploy 
with kind `Trip`, but then the error still is thrown because appengine is 
trying to find an index with the name of the model class instea of the 
model type.

Am I right? Is this a bug?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e230b0e3-0c79-44b5-8705-a5f83e422c71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine... Nicolas Oteiza

Reply via email to