- from rest_framework import serializers
- from SharixAdmin.models import SharixUser
- class PersonInfoSerializer(serializers.ModelSerializer):
- full_name = serializers.ReadOnlyField()
- class Meta:
- model = SharixUser
- fields = ['full_name']
- def validate(self, attrs):
- return super().validate(attrs)
|