Skip to content

Commit

Permalink
fix add Another
Browse files Browse the repository at this point in the history
  • Loading branch information
hadpro24 committed Jan 14, 2022
1 parent a0da0e5 commit 887de3b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/project/app/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_render_fieldset(self):


def test_render_inline_fieldset(self):
InlineForm = inlineformset_factory(Student, Note,
InlineForm = inlineformset_factory(Student, Note,
fields=('subject', 'value',), exclude=('pk',), can_delete=False,
)
context = Context({'form': self.form, 'form_inline': InlineForm()})
Expand Down Expand Up @@ -95,5 +95,4 @@ def test_render_inline_fieldset(self):
## inline
self.assertInHTML('<h2 style="background-color: #42945c">Note des eleves</h2>', rendered)
self.assertInHTML('<input type="hidden" name="notes-TOTAL_FORMS" value="3" id="id_notes-TOTAL_FORMS">', rendered)
self.assertInHTML('<a href="#" id="add-info">Ajout supplémentaire</a>', rendered)

self.assertInHTML('<a href="#" id="add-info">Add another</a>', rendered)

0 comments on commit 887de3b

Please sign in to comment.