#NEWLINE# def form_valid( self , form ) : #NEWLINE# #INDENT# '\n        Overwrites CreateView method to add the user to the form instance\n\n        Parameters\n        ----------\n        form : geokey.applications.forms.AppCreateForm\n            Represents the user input\n        ' #NEWLINE# form . instance . user = self . request . user #NEWLINE# add_another_url = reverse ( 'admin:app_register' ) #NEWLINE# messages . success ( self . request , mark_safe ( ( 'The application has been created. <a href="%s">Add another application.</a>' % self ) ) ) #NEWLINE# return super ( ApplicationCreate , self ) . form_valid ( form )