From: Radek Czajka Date: Fri, 1 Mar 2019 13:09:45 +0000 (+0100) Subject: fixes X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/768497c92cb75290c032f4ffd586eccab6fd3eec fixes --- diff --git a/requirements/requirements.txt b/requirements/requirements.txt index fc6f6fb5e..6cffb853d 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -38,7 +38,7 @@ mutagen>=1.31 sorl-thumbnail>=12.3,<12.4 # home-brewed & dependencies -librarian==1.7 +librarian==1.7.1 # celery tasks celery>=3.1.12,<3.2 diff --git a/src/api/urls.py b/src/api/urls.py index a3e877d6c..cb890da3d 100644 --- a/src/api/urls.py +++ b/src/api/urls.py @@ -11,7 +11,7 @@ from . import views urlpatterns = [ - url(r'^oauth/request_token/$', views.OAuth1RequestTokenView.as_view()), + url(r'^oauth/request_token/$', csrf_exempt(views.OAuth1RequestTokenView.as_view())), url(r'^oauth/authorize/$', views.oauth_user_auth, name='oauth_user_auth'), url(r'^oauth/access_token/$', csrf_exempt(views.OAuth1AccessTokenView.as_view())),