diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2022-02-14 11:02:33 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-15 07:15:44 +0100 |
| commit | d84cd91e90cb0871e43f98cba8c53be99053e903 (patch) | |
| tree | 2e8337022d486161d796554b73642c08de527d6c /django/contrib/admin/helpers.py | |
| parent | 9bb13def5d416ff3d5d1928a2def5babac0e19f6 (diff) | |
Refs #33348 -- Improved messages raised by SimpleTestCase.assertFormError()/assertFormsetErrors().
This makes messages use BaseFormSet/BaseForm.__repr__() instead of
context, and adds the _assert_form_error() helper.
Diffstat (limited to 'django/contrib/admin/helpers.py')
| -rw-r--r-- | django/contrib/admin/helpers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/contrib/admin/helpers.py b/django/contrib/admin/helpers.py index 9c78e758f0..cc5317199d 100644 --- a/django/contrib/admin/helpers.py +++ b/django/contrib/admin/helpers.py @@ -84,6 +84,10 @@ class AdminForm: return self.form.non_field_errors @property + def fields(self): + return self.form.fields + + @property def is_bound(self): return self.form.is_bound |
