Skip to content

Commit b87f6bd

Browse files
committed
Add support for Django REST framework's request.data
1 parent 651c730 commit b87f6bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django_ratelimit/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def get_header(request, header):
8080
_ACCESSOR_KEYS = {
8181
'get': lambda r, k: r.GET.get(k, ''),
8282
'post': lambda r, k: r.POST.get(k, ''),
83+
'data': lambda r, k: r.data.get(k, ''),
8384
'header': get_header,
8485
}
8586

0 commit comments

Comments
 (0)