Set CaseStudy.author
This commit is contained in:
parent
d80f933b7b
commit
2bb7ea5561
@ -77,6 +77,9 @@ class BaseForm(LoginRequiredMixin, CreateView):
|
|||||||
'shapefiles_files', []
|
'shapefiles_files', []
|
||||||
)
|
)
|
||||||
|
|
||||||
|
self.object.author = self.request.user
|
||||||
|
self.object.save()
|
||||||
|
|
||||||
self.send_email()
|
self.send_email()
|
||||||
|
|
||||||
# Delete the corresponding draft
|
# Delete the corresponding draft
|
||||||
|
Loading…
Reference in New Issue
Block a user