Skip to content

Commit

Permalink
Explicitly pass children attributes to widget
Browse files Browse the repository at this point in the history
Fixes #68
  • Loading branch information
u8sand committed Sep 14, 2018
1 parent 2fe450c commit b56a5bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FAIRshakeAPI/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b56a5bc

Please sign in to comment.