Skip to content

Commit e1365f1

Browse files
authored
Merge branch 'master' into patch-1
2 parents ff43d06 + 6625d3a commit e1365f1

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Jerome Leclanche
3636
Jim Graham
3737
Jonas Nygaard Pedersen
3838
Jonathan Steffan
39+
Jozef Knaperek
3940
Jun Zhou
4041
Kristian Rune Larsen
4142
Paul Dekkers

docs/tutorial/tutorial_01.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Start Your App
99
--------------
1010
During this tutorial you will make an XHR POST from a Heroku deployed app to your localhost instance.
1111
Since the domain that will originate the request (the app on Heroku) is different from the destination domain (your local instance),
12-
you will need to install the `django-cors-middleware <https://github.com/zestedesavoir/django-cors-middleware>`_ app.
12+
you will need to install the `django-cors-headers <https://github.com/adamchainz/django-cors-headers>`_ app.
1313
These "cross-domain" requests are by default forbidden by web browsers unless you use `CORS <http://en.wikipedia.org/wiki/Cross-origin_resource_sharing>`_.
1414

15-
Create a virtualenv and install `django-oauth-toolkit` and `django-cors-middleware`:
15+
Create a virtualenv and install `django-oauth-toolkit` and `django-cors-headers`:
1616

1717
::
1818

19-
pip install django-oauth-toolkit django-cors-middleware
19+
pip install django-oauth-toolkit django-cors-headers
2020

2121
Start a Django project, add `oauth2_provider` and `corsheaders` to the installed apps, and enable admin:
2222

oauth2_provider/admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class ApplicationAdmin(admin.ModelAdmin):
2626

2727
class AccessTokenAdmin(admin.ModelAdmin):
2828
list_display = ("token", "user", "application", "expires")
29+
list_select_related = ("application", "user")
2930
raw_id_fields = ("user", "source_refresh_token")
3031

3132

0 commit comments

Comments
 (0)