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