I'm new to Django and I'm trying to serialize a queryset using DjangoSerializer but one of a SerializerMethodField requires user instance. So how can I pass user instance in a context?
projects = Project.objects.all().order_by('name')
serializer = ProjectSerializer(projects, context={'request': request}, many=True)
You can assume that request has user in it.
Thanks for helping.