Commit b3a8a9e
authored
Explain that the
I was thinking that I could use the `db` fixture to access a database connection object within a test. However, the `db` fixture returns None. This documentation update makes it clear that the `db` fixture does not return an object, and explains that users should use from `django.db import connection` instead.
Reference:
See [this comment](#338 (comment)) on issue #338.db fixture returns None1 parent 203a7d6 commit b3a8a9e
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
| |||
0 commit comments