using() was added in 0.9. Not 0.8.
This commit is contained in:
parent
be3643c962
commit
74a3c4451b
@ -601,7 +601,7 @@ class BaseQuerySet(object):
|
|||||||
|
|
||||||
:param alias: The database alias
|
:param alias: The database alias
|
||||||
|
|
||||||
.. versionadded:: 0.8
|
.. versionadded:: 0.9
|
||||||
"""
|
"""
|
||||||
|
|
||||||
with switch_db(self._document, alias) as cls:
|
with switch_db(self._document, alias) as cls:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user