Django backend for WorkX project
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.
|
- from django.db import models
- from client.models import Client
-
-
- class Project(models.Model):
- name = models.CharField(max_length=30)
- project_image = models.ImageField(upload_to='project_images', null=True, blank=True)
- client = models.ForeignKey(Client, on_delete=models.CASCADE)
- total_compensation = models.DecimalField()
- start_date = models.DateField()
- end_date = models.DateField()
-
- def __str__(self):
- return self.name
|