jonashaag / django-addanother

"Add another" buttons outside the Django admin

Home Page:http://django-addanother.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Widget state shared between form instances

jonashaag opened this issue · comments

Two bugs here:

  1. We should be using deepcopy to make copies of the inner widget to avoid state sharing of inner widgets if someone passes a widget instance rather than a widget class. django/django@09da1e7

  2. We should make sure that when a widget is being copied using deepcopy, the inner widget is deepcopied too.

We actually don't need 1., see Django's MultiWidget implementation