.
This commit is contained in:
@@ -357,6 +357,12 @@ class LongSeriesUpdate(
|
|||||||
# #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(LongSeriesUpdate, 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(LongSeriesUpdate, self).get_context_data(**kwargs)
|
context = super(LongSeriesUpdate, self).get_context_data(**kwargs)
|
||||||
if self.request.POST:
|
if self.request.POST:
|
||||||
|
|||||||
Reference in New Issue
Block a user