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.

12 rivejä
369 B

  1. from rest_framework import serializers
  2. from .models import Project
  3. from client.serializers import ClientSerializer
  4. class ProjectSerializer(serializers.ModelSerializer):
  5. client = ClientSerializer(read_only=True)
  6. class Meta:
  7. model = Project
  8. fields = ['id', 'name', 'project_image', 'client', 'total_compensation', 'start_date', 'end_date']