Is it possible to get the current user in a model serializer? I\'d like to do so without having to branch away from generics, as it\'s an otherwise simple task that must be done
I modified the request.data:
serializer = SectionSerializer(data=add_profile_data(request.data, request.user)) def add_profile_data(data, user): data['user'] = user.profile.id return data