fix pre-commit
Some checks failed
CI/CD Pipeline / Code Quality Checks (pull_request) Successful in 3m6s
CI/CD Pipeline / Run API Inventory E2E Tests (pull_request) Has been cancelled
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been cancelled
CI/CD Pipeline / Run Tests (pull_request) Has been cancelled

This commit is contained in:
2026-03-23 13:27:58 +01:00
parent 4ca6b75393
commit 45bca018b5
5 changed files with 19 additions and 13 deletions

View File

@@ -115,7 +115,9 @@ ADMIN_USER_LIST_RESPONSE = openapi.Response(
type=openapi.TYPE_OBJECT,
properties={
"count": openapi.Schema(type=openapi.TYPE_INTEGER),
"next": openapi.Schema(type=openapi.TYPE_STRING, format="uri", nullable=True),
"next": openapi.Schema(
type=openapi.TYPE_STRING, format="uri", nullable=True
),
"previous": openapi.Schema(
type=openapi.TYPE_STRING, format="uri", nullable=True
),
@@ -372,9 +374,7 @@ class AdminUserListCreateView(APIView):
ordering=request.query_params.get("ordering", ""),
)
paginated = _paginate_user_queryset(request, queryset)
serializer = FrontendUserWithProfileSerializer(
paginated["results"], many=True
)
serializer = FrontendUserWithProfileSerializer(paginated["results"], many=True)
return Response(
{
"count": paginated["count"],