Following code runs fine on production and dev server:
outstanding_qs = models.SitePerformanceTrackingAnswers.all().run(projection=('questionnaire',))
However, after adding the distinct parameter when calling run (as should be possible according to the documentation):
outstanding_qs = models.SitePerformanceTrackingAnswers.all().run(projection=('questionnaire',), distinct=True)
The following error is generated on both dev and production:
TypeError: Unknown configuration option ('distinct')
What am I doing wrong!?
Seems like it's a bug. You can pass the query options to .all() though, to do the same thing. (And checking, this seems not to be documented... I'm fairly sure it works though)
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