You can not select more than 25 topics 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.

12 lines
342 B

  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__'