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

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