---
source: crates/ruff_linter/src/rules/flake8_django/mod.rs
---
DJ003 Avoid passing `locals()` as context to a `render` function
 --> DJ003.py:5:42
  |
4 | def test_view1(request):
5 |     return render(request, "index.html", locals())
  |                                          ^^^^^^^^
  |

DJ003 Avoid passing `locals()` as context to a `render` function
 --> DJ003.py:9:50
  |
8 | def test_view2(request):
9 |     return render(request, "index.html", context=locals())
  |                                                  ^^^^^^^^
  |
