This commit is contained in:
Ross
2021-04-26 13:29:35 +01:00
parent 07f902c554
commit 1973698257
+5
View File
@@ -360,6 +360,11 @@ class RapidUpdate(LoginRequiredMixin, AuthorOrCheckerRequiredMixin, UpdateView):
# #fields = [ 'condition' ] # #fields = [ 'condition' ]
# #initial = {'date_of_death': '05/01/2018'} # #initial = {'date_of_death': '05/01/2018'}
# exclude = [ 'created_date', 'published_date' ] # exclude = [ 'created_date', 'published_date' ]
def get_form_kwargs(self):
kwargs = super(RapidCreateBase, self).get_form_kwargs()
kwargs.update({'user': self.request.user})
return kwargs
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super(RapidUpdate, self).get_context_data(**kwargs) context = super(RapidUpdate, self).get_context_data(**kwargs)
if self.request.POST: if self.request.POST: