Django backend for WorkX project
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.

9 rivejä
270 B

  1. from rest_framework import serializers
  2. from .models import Employee
  3. class EmployeeSerializer(serializers.ModelSerializer):
  4. class Meta:
  5. model = Employee
  6. fields = ['id', 'user', 'employee_id', 'phone', 'salary', 'start_date', 'end_date', 'projects']