DRF分页组件三种方式: models.py: from django.db import models class UserRole(models.Model): role = models.CharField(max_length=12) models.py: 相关文章: