---
source: crates/ruff_linter/src/rules/flake8_django/mod.rs
snapshot_kind: text
---
DJ007.py:6:9: DJ007 Do not use `__all__` with `ModelForm`, use `fields` instead
  |
4 | class TestModelForm1(forms.ModelForm):
5 |     class Meta:
6 |         fields = "__all__"
  |         ^^^^^^^^^^^^^^^^^^ DJ007
  |

DJ007.py:11:9: DJ007 Do not use `__all__` with `ModelForm`, use `fields` instead
   |
 9 | class TestModelForm2(forms.ModelForm):
10 |     class Meta:
11 |         fields = b"__all__"
   |         ^^^^^^^^^^^^^^^^^^^ DJ007
   |
