I am using Django Rest Framework authentication system which comes with a default user table. In that table it splits first and last name in two different char fields.
Is it possible to join these two fields in a serializer? Something like this:
class UserSerializer(serializers.ModelSerializer):
full_name = serializers.CharField(source='user.first_name' + ' ' + 'user.last_name')
So that I would get the following response:
{
full_name: "firs_name last_name"
}