Google App Engine datastore "excellent" does not work in dev server or production

The following code works fine on production and dev server:

outstanding_qs = models.SitePerformanceTrackingAnswers.all().run(projection=('questionnaire',))

However, after adding the parameter distinct

on call run

(as is possible according to the documentation):

outstanding_qs = models.SitePerformanceTrackingAnswers.all().run(projection=('questionnaire',), distinct=True)

The following error occurs for both dev and production:

TypeError: Unknown configuration option ('distinct')

What am I doing wrong?

+3


source to share


2 answers


This seems to be a bug. You can pass query parameters .all()

, although you can do the same. (And checking, this doesn't seem to be documented ... I'm pretty sure it works though)



+1


source


Are you using ndb? I see the "great" ones mentioned in the db class docs but not the ndb docs.



0


source







All Articles