mirror of
https://github.com/django/django.git
synced 2025-11-18 11:00:24 +00:00
Refs #33348 -- Made SimpleTestCase.assertFormsetErrors() raise an error when form_index is too big.
This commit is contained in:
parent
261885e4c1
commit
9bb13def5d
3 changed files with 40 additions and 1 deletions
|
|
@ -445,6 +445,10 @@ class InlineAdminFormSet:
|
|||
def is_bound(self):
|
||||
return self.formset.is_bound
|
||||
|
||||
@property
|
||||
def total_form_count(self):
|
||||
return self.formset.total_form_count
|
||||
|
||||
@property
|
||||
def media(self):
|
||||
media = self.opts.media + self.formset.media
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue