Set CaseStudy.author

This commit is contained in:
Carl van Tonder 2018-05-29 23:16:22 -04:00
parent d80f933b7b
commit 2bb7ea5561

View File

@ -77,6 +77,9 @@ class BaseForm(LoginRequiredMixin, CreateView):
'shapefiles_files', []
)
self.object.author = self.request.user
self.object.save()
self.send_email()
# Delete the corresponding draft