Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git app/summerofcode/content/html/summerofcode/profile/profile_show.html app/summerofcode/content/html/summerofcode/profile/profile_show.html
- index 5e348da..b503aa2 100644
- --- app/summerofcode/content/html/summerofcode/profile/profile_show.html
- +++ app/summerofcode/content/html/summerofcode/profile/profile_show.html
- @@ -17,6 +17,7 @@ limitations under the License.
- {% block stylesheets %}
- {{ block.super }}
- <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gsoc/buttons.css" />
- + <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gsoc/forms.css" />
- <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gsoc/uniform.default.css" />
- {% endblock stylesheets %}
- diff --git app/summerofcode/views/profile.py app/summerofcode/views/profile.py
- index 427a743..8d6a088 100644
- --- app/summerofcode/views/profile.py
- +++ app/summerofcode/views/profile.py
- @@ -1305,8 +1305,8 @@ class CreateProfileFormHandler(form_handler.FormHandler):
- data.program.key(), profile_properties, username=username, user=user,
- models=data.models)
- - return http.HttpResponseRedirect(
- - links.LINKER.program(data.program, urls.UrlNames.PROFILE_EDIT))
- + redirect_url=links.LINKER.program(data.program,urls.UrlNames.PROFILE_SHOW)+'?validated'
- + return http.HttpResponseRedirect(redirect_url)
- class ProfileEditPage(base.GSoCRequestHandler):
- @@ -1333,7 +1333,9 @@ class ProfileEditPage(base.GSoCRequestHandler):
- return {
- 'page_name': PROFILE_EDIT_PAGE_NAME,
- 'forms': [form],
- - 'error': bool(form.errors)
- + 'error': bool(form.errors),
- + 'tabs': tabs.profileTabs(
- + data, selected_tab_id=tabs.EDIT_PROFILE_TAB_ID)
- }
- def post(self, data, check, mutator):
- @@ -1347,9 +1349,9 @@ class ProfileEditPage(base.GSoCRequestHandler):
- profile_properties = _getProfileEntityPropertiesFromForm(
- form, data.models)
- editProfileTxn(data.ndb_profile.key, profile_properties)
- -
- - return http.HttpResponseRedirect(
- - links.LINKER.program(data.program, urls.UrlNames.PROFILE_EDIT))
- +
- + redirect_url=links.LINKER.program(data.program,urls.UrlNames.PROFILE_SHOW)+'?validated'
- + return http.HttpResponseRedirect(redirect_url)
- class ProfileShowPage(base.GSoCRequestHandler):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement