25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

serializers.py 342 B

123456789101112
  1. from rest_framework import serializers
  2. from common.serializers import BankDetailsSerializer, AddressSerializer
  3. from .models import Employee
  4. class EmployeeSerializer(serializers.ModelSerializer):
  5. address = AddressSerializer()
  6. bank_details = BankDetailsSerializer()
  7. class Meta:
  8. model = Employee
  9. fields = '__all__'