mirror of
https://github.com/django/django.git
synced 2025-11-18 11:00:24 +00:00
Fixed #33348 -- Changed SimpleTestCase.assertFormError()/assertFormsetErrors() to take form/formset.
Instead of taking a response object and a context name for the form/formset, the two methods now take the object directly.
This commit is contained in:
parent
1a7d75cf77
commit
50e1e7ef8e
8 changed files with 563 additions and 290 deletions
|
|
@ -441,9 +441,8 @@ class InlineAdminFormSet:
|
|||
def forms(self):
|
||||
return self.formset.forms
|
||||
|
||||
@property
|
||||
def non_form_errors(self):
|
||||
return self.formset.non_form_errors
|
||||
return self.formset.non_form_errors()
|
||||
|
||||
@property
|
||||
def is_bound(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue