A colleague is getting
DocumentTypeError: Document type is not supported.
when calling Subscribe using an ndb document type, on the dev appserver.
Are ndb and Prospective Search compatible?
Yes, ndb and Prospective search are compatible but you need to use prospective_search for ndb:
from google.appengine.ext.ndb import prospective_search
Regarding the error, from the source:
get_document() Raises DocumentTypeError: if document class is not recognized.
http://appengine-ndb-experiment.googlecode.com/hg/ndb/prospective_search.py
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With