|
3 | 3 |
|
4 | 4 | from . import views |
5 | 5 |
|
6 | | -urlpatterns = ( |
| 6 | +urlpatterns = [ |
7 | 7 | url(r'^authorize/$', views.AuthorizationView.as_view(), name="authorize"), |
8 | 8 | url(r'^token/$', views.TokenView.as_view(), name="token"), |
9 | 9 | url(r'^revoke_token/$', views.RevokeTokenView.as_view(), name="revoke-token"), |
10 | | -) |
| 10 | +] |
11 | 11 |
|
12 | 12 | # Application management views |
13 | | -urlpatterns += ( |
| 13 | +urlpatterns += [ |
14 | 14 | url(r'^applications/$', views.ApplicationList.as_view(), name="list"), |
15 | 15 | url(r'^applications/register/$', views.ApplicationRegistration.as_view(), name="register"), |
16 | 16 | url(r'^applications/(?P<pk>\d+)/$', views.ApplicationDetail.as_view(), name="detail"), |
17 | 17 | url(r'^applications/(?P<pk>\d+)/delete/$', views.ApplicationDelete.as_view(), name="delete"), |
18 | 18 | url(r'^applications/(?P<pk>\d+)/update/$', views.ApplicationUpdate.as_view(), name="update"), |
19 | | -) |
| 19 | +] |
20 | 20 |
|
21 | | -urlpatterns += ( |
| 21 | +urlpatterns += [ |
22 | 22 | url(r'^authorized_tokens/$', views.AuthorizedTokensListView.as_view(), name="authorized-token-list"), |
23 | 23 | url(r'^authorized_tokens/(?P<pk>\d+)/delete/$', views.AuthorizedTokenDeleteView.as_view(), |
24 | 24 | name="authorized-token-delete"), |
25 | | -) |
| 25 | +] |
0 commit comments