raise error if there is unsupported extrastuff

This commit is contained in:
Laura Klünder 2017-06-17 22:13:43 +02:00
parent ec18984875
commit 4325b1984d

View file

@ -551,6 +551,8 @@ class BaseQueryWrapper(BaseWrapper):
result = list(chain(*(instances.values() for instances in objs_by_pk.values()))) result = list(chain(*(instances.values() for instances in objs_by_pk.values())))
break break
else:
raise NotImplementedError('Cannot do extra() for '+extra)
obj._result_cache = result obj._result_cache = result
obj._prefetch_done = False obj._prefetch_done = False