text: from django.contrib.auth.models import User
  
  from rest_framework import serializers
  
  
  class UserSerializer(serializers.ModelSerializer):
  
      full_name = serializers.CharField(source='get_full_name', read_only=True)
  
      class Meta:
          model = User
          fields = ('id', 'username', 'email', 'full_name')
  