Refs #33348 -- Made SimpleTestCase.assertFormsetErrors() raise an error when form_index is too big.

This commit is contained in:
Baptiste Mispelon 2022-02-14 12:27:26 +01:00 committed by Mariusz Felisiak
parent 261885e4c1
commit 9bb13def5d
3 changed files with 40 additions and 1 deletions

View file

@ -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