Skip to content

Commit

Permalink
Merge pull request #40 from poldracklab/fix_invest
Browse files Browse the repository at this point in the history
pass instance object to investigator formset so that it will propeerl…
  • Loading branch information
rwblair committed Dec 12, 2016
2 parents 9edaf80 + f42e63f commit efa3c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion open_fmri/apps/dataset/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def get_context_data(self, **kwargs):
context = super(DatasetCreateUpdate, self).get_context_data(**kwargs)
contact_pk = 0
# initial = {'contact': contact_pk})
context['investigator_formset'] = InvestigatorFormSet()
context['investigator_formset'] = InvestigatorFormSet(instance=self.object)
context['investigator_formset_helper'] = InvestigatorFormSetHelper()
context['link_formset'] = LinkFormSet(instance=self.object)
context['link_formset_helper'] = LinkFormSetHelper()
Expand Down

0 comments on commit efa3c63

Please sign in to comment.