1👍
✅
I think you could use the UserSerializer
.
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = '__all__'
class RegisterStaffSerializerForModerators(serializers.ModelSerializer):
user = UserSerializer()
class Meta:
model = Staff
...
Source:stackexchange.com