mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Fixes broken permissions-example.
reverse takes `request` as a kwarg.
This commit is contained in:
parent
1751655927
commit
55317b0372
|
@ -12,11 +12,11 @@ class PermissionsExampleView(View):
|
|||
return [
|
||||
{
|
||||
'name': 'Throttling Example',
|
||||
'url': reverse('throttled-resource', request)
|
||||
'url': reverse('throttled-resource', request=request)
|
||||
},
|
||||
{
|
||||
'name': 'Logged in example',
|
||||
'url': reverse('loggedin-resource', request)
|
||||
'url': reverse('loggedin-resource', request=request)
|
||||
},
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user