File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -219,8 +219,8 @@ def _inject_pagination(
219219 paginator_class : Type [Union [PaginationBase , AsyncPaginationBase ]],
220220 ** paginator_params : Any ,
221221) -> Callable [..., Any ]:
222- if getattr (func , "_is_paginated " , False ):
223- return func
222+ if getattr (func , "_ninja_is_paginated " , False ):
223+ return func # ^ user changed pagination manually on function already
224224
225225 paginator = paginator_class (** paginator_params )
226226
@@ -295,7 +295,7 @@ def view_with_pagination(request: HttpRequest, **kwargs: Any) -> Any:
295295 partial (make_response_paginated , paginator ),
296296 )
297297
298- view_with_pagination ._is_paginated = True # type: ignore
298+ view_with_pagination ._ninja_is_paginated = True # type: ignore
299299 return view_with_pagination
300300
301301
You can’t perform that action at this time.
0 commit comments