diff --git a/atlas/views.py b/atlas/views.py index c77d8794..b0599d04 100755 --- a/atlas/views.py +++ b/atlas/views.py @@ -313,8 +313,8 @@ class AtlasCreateBase(RevisionMixin, LoginRequiredMixin, CreateView): context["series_formset"].full_clean() context["casedifferential_formset"].full_clean() else: - context["series_formset"] = SeriesFormSet() - context["casedifferential_formset"] = CaseDifferentialFormSet() + context["series_formset"] = SeriesFormSet(self.object) + context["casedifferential_formset"] = CaseDifferentialFormSet(self.object) return context def form_valid(self, form): @@ -359,9 +359,7 @@ class AtlasCreate(AtlasCreateBase): return self.initial -class AtlasUpdate( - AuthorOrCheckerRequiredMixin, UpdateView, AtlasCreateBase -): +class AtlasUpdate(AuthorOrCheckerRequiredMixin, UpdateView, AtlasCreateBase): model = Case form_class = CaseForm