def form_valid(self, form):
        form.instance.user = self.request.user

        add_another_url = reverse(
            'admin:app_register'
        )

        messages.success(
            self.request,
            mark_safe('The application has been created. <a href="%s">Add '
                      'another application.</a>' % add_another_url)
        )

        return super(ApplicationCreate, self).form_valid(form)
Overwrites CreateView method to add the user to the form instance
dataset/ETHPy150Open ExCiteS/geokey/geokey/applications/views.py/ApplicationCreate.form_valid