mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 01:49:50 +03:00
Fixed Lint errors
This commit is contained in:
parent
2df24632e0
commit
d93e3b9419
|
@ -130,7 +130,7 @@ def paginate(view_method):
|
||||||
@wraps(view_method)
|
@wraps(view_method)
|
||||||
def inner(view, *args, **kwargs):
|
def inner(view, *args, **kwargs):
|
||||||
assert isinstance(view, APIView), (
|
assert isinstance(view, APIView), (
|
||||||
"paginate must be applied on an APIView, but applied on %s." % APIView
|
"paginate must be applied on an APIView, but applied on %s." % APIView
|
||||||
)
|
)
|
||||||
|
|
||||||
queryset = view_method(view, *args, **kwargs)
|
queryset = view_method(view, *args, **kwargs)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user