Skip to content

[feature] Re-usable pagination class for DRF views #586

@pandafy

Description

@pandafy

Is your feature request related to a problem? Please describe.
Currently, when using Django Rest Framework (DRF) in different OpenWISP modules or projects, pagination logic is often repeated or inconsistently implemented. This leads to duplicated code and inconsistent pagination behavior across APIs.

Describe the solution you'd like
Create a re-usable, pagination class for DRF views in openwisp-utils, which can be easily shared and imported across other OpenWISP modules. The class should provide sensible defaults and allow for settings overrides. Proper documentation should be included and usage should be demonstrated with examples.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    To do (general)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions