.
This commit is contained in:
+3
-5
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user