from django.db import models
from django.db.models import fields
from rest_framework import serializers
from EmplyeeApp.models import Employee,Department

class EmployeeSerializer(serializers.ModelSerializer):
    class Meta:
        model = Employee
        fields = ('employeeId','employeeName','dateOfJoining','departmentName','photoFileUrl')

class DepartmentSerializer(serializers.ModelSerializer):
    class Meta:
        model = Department
        fields = ('departmentId','departmentName')
1f4529b6f0875c240fe5b12b0803811a1fe790a4
<mask token>

<mask token>


class DepartmentSerializer(serializers.ModelSerializer):


    class Meta:
        model = Department
        fields = 'departmentId', 'departmentName'

<mask token>


class EmployeeSerializer(serializers.ModelSerializer):


    class Meta:
        model = Employee
        fields = ('employeeId', 'employeeName', 'dateOfJoining',
            'departmentName', 'photoFileUrl')


class DepartmentSerializer(serializers.ModelSerializer):


    class Meta:
        model = Department
        fields = 'departmentId', 'departmentName'

from django.db import models
from django.db.models import fields
from rest_framework import serializers
from EmplyeeApp.models import Employee, Department


class EmployeeSerializer(serializers.ModelSerializer):


    class Meta:
        model = Employee
        fields = ('employeeId', 'employeeName', 'dateOfJoining',
            'departmentName', 'photoFileUrl')


class DepartmentSerializer(serializers.ModelSerializer):


    class Meta:
        model = Department
        fields = 'departmentId', 'departmentName'

from django.db import models
from django.db.models import fields
from rest_framework import serializers
from EmplyeeApp.models import Employee,Department

class EmployeeSerializer(serializers.ModelSerializer):
    class Meta:
        model = Employee
        fields = ('employeeId','employeeName','dateOfJoining','departmentName','photoFileUrl')

class DepartmentSerializer(serializers.ModelSerializer):
    class Meta:
        model = Department
        fields = ('departmentId','departmentName')