﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25754	Queryset repr is not displayed on IPython >= 3.0 REPL if a NotImplementedError is raised	Michael Angeletti	nobody	"I'm running SQLite3 , and the following doesn't result in an error or any visible output:

{{{
In [5]: Spam.objects.distinct('field')
Out[5]: 
In [6]: isinstance(Spam.objects.distinct('field'), models.QuerySet)
Out[6]: True
}}}

The queryset is not evaluated for some reason.

{{{
In [7]: repr(Spam.objects.distinct('field'))
---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
...
NotImplementedError: DISTINCT ON fields is not supported by this database backend
}}}

Maybe this bug is really ""queryset not evaluated when it should be"", rather than ""doesn't raise an error when it should"", since the following is evaluated as expected:

{{{
In [8]: Spam.objects.all()
Out[8]: [<Spam: Salty>, <Spam: Delicious>, <Spam: Goo>]
}}}"	Bug	closed	Database layer (models, ORM)	dev	Normal	invalid	distinct		Accepted	0	0	0	0	0	0
