https://supertokens.com/ logo
Title
s

shorthair_[]

10/16/2022, 11:21 AM
view.py file in django project


from rest_framework.response import Response
from rest_framework.decorators import api_view
from supertokens_python.syncio import get_users_newest_first
from .serializers import GetUserSerializer


@api_view(['GET'])
def get_users(request):
    firstguys = get_users_newest_first()
    serializer = GetUserSerializer(firstguys)
    return Response(serializer.data)
r

rp

10/16/2022, 11:23 AM
hey @shorthair_[] whats the error you are facing?
s

shorthair_[]

10/16/2022, 11:39 AM
" 'str' object has no attribute 'values' "
r

rp

10/16/2022, 11:39 AM
can you please open an issue about this on our github? We will have a look.
s

shorthair_[]

10/16/2022, 11:42 AM
okay
thanks