New Features - Adopt double-bracket placeholders (`[[ var ]]`) and rename templates to `.py-tpl`/.`md-tpl` extensions. - Introduce new `runtime_txt-tpl` template. Enhancements - Update `api_readme`, `models`, `apps`, `routes`, `pyproject`, `readme`, and `requirements` templates with new syntax and naming. - Align placeholder naming with a unified convention. Bug Fixes - None.
14 lines
421 B
Plaintext
14 lines
421 B
Plaintext
from rest_framework import status, viewsets
|
|
from rest_framework.response import Response
|
|
|
|
from apps.users.models.user import User
|
|
from apps.users.serializers.user_serializer import UserSerializer
|
|
|
|
|
|
class UserViewSet(viewsets.ReadOnlyModelViewSet):
|
|
queryset = User.objects.all()
|
|
serializer_class = UserSerializer
|
|
|
|
def list(self, request, *args, **kwargs):
|
|
return super().list(request, *args, **kwargs)
|