From b56a5bc924cfbed8ce3edc82dfe0688aab88e4f4 Mon Sep 17 00:00:00 2001 From: "Daniel J. B. Clarke" Date: Fri, 14 Sep 2018 16:02:57 -0400 Subject: [PATCH] Explicitly pass children attributes to widget Fixes #68 --- FAIRshakeAPI/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/FAIRshakeAPI/forms.py b/FAIRshakeAPI/forms.py index fc89da4..c7c3fa2 100644 --- a/FAIRshakeAPI/forms.py +++ b/FAIRshakeAPI/forms.py @@ -12,6 +12,7 @@ def __init__(self, *args, **kwargs): child, required=False, help_text=None, + initial=getattr(self.instance, child).all() if self.instance and self.instance.id else [], ) def save(self, *args, commit=True, **kwargs):