app/soc/views/site/user/profile.py
changeset 290 2a92b866ed40
parent 274 56e1c1721299
child 294 1fdaab4a6ef2
equal deleted inserted replaced
289:1b63d17d5b62 290:2a92b866ed40
   301           # redirect to aggressively remove 'Profile saved' query parameter
   301           # redirect to aggressively remove 'Profile saved' query parameter
   302           return http.HttpResponseRedirect(request.path)
   302           return http.HttpResponseRedirect(request.path)
   303     
   303     
   304         # referrer was us, so select which submit message to display
   304         # referrer was us, so select which submit message to display
   305         # (may display no message if ?s=0 parameter is not present)
   305         # (may display no message if ?s=0 parameter is not present)
   306         context['submit_message'] = (
   306         context['notice'] = (
   307             helper.requests.getSingleIndexedParamValue(
   307             helper.requests.getSingleIndexedParamValue(
   308                 request, profile.SUBMIT_MSG_PARAM_NAME,
   308                 request, profile.SUBMIT_MSG_PARAM_NAME,
   309                 values=profile.SUBMIT_MESSAGES))
   309                 values=profile.SUBMIT_MESSAGES))
   310 
   310 
   311         # populate form with the existing User entity
   311         # populate form with the existing User entity