Commit f6e14e62 by thedeadparrot Committed by Julia Hansbrough

Change setlang url

parent 7e38c3ad
...@@ -9,5 +9,5 @@ user_api_router.register(r'user_prefs', user_api_views.UserPreferenceViewSet) ...@@ -9,5 +9,5 @@ user_api_router.register(r'user_prefs', user_api_views.UserPreferenceViewSet)
urlpatterns = patterns( urlpatterns = patterns(
'', '',
url(r'^v1/', include(user_api_router.urls)), url(r'^v1/', include(user_api_router.urls)),
url(r'^setlang/', 'user_api.views.set_language', name='user_api_set_language') url(r'^v1/setlang/', 'user_api.views.set_language', name='user_api_set_language')
) )
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
$("#submit-lang").click(function(event, xhr) { $("#submit-lang").click(function(event, xhr) {
event.preventDefault(); event.preventDefault();
$.post('/user_api/setlang/', $.post('/user_api/v1/setlang/',
{"language": $('#settings-language-value').val()}) {"language": $('#settings-language-value').val()})
.done( .done(
function(data){ function(data){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment