raise error if there is unsupported extrastuff
This commit is contained in:
parent
ec18984875
commit
4325b1984d
1 changed files with 2 additions and 0 deletions
|
@ -551,6 +551,8 @@ class BaseQueryWrapper(BaseWrapper):
|
|||
|
||||
result = list(chain(*(instances.values() for instances in objs_by_pk.values())))
|
||||
break
|
||||
else:
|
||||
raise NotImplementedError('Cannot do extra() for '+extra)
|
||||
|
||||
obj._result_cache = result
|
||||
obj._prefetch_done = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue