.
This commit is contained in:
@@ -310,6 +310,12 @@ class LongSeriesCreate(RevisionMixin, LoginRequiredMixin, CreateView):
|
||||
|
||||
return initial
|
||||
|
||||
def get_form_kwargs(self):
|
||||
kwargs = super(LongSeriesCreate, self).get_form_kwargs()
|
||||
kwargs.update({"user": self.request.user})
|
||||
return kwargs
|
||||
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super(LongSeriesCreate, self).get_context_data(**kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user