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.

15 rivejä
456 B

  1. from django.db import models
  2. from client.models import Client
  3. class Project(models.Model):
  4. name = models.CharField(max_length=30)
  5. project_image = models.ImageField(upload_to='project_images', null=True, blank=True)
  6. client = models.ForeignKey(Client, on_delete=models.CASCADE)
  7. total_compensation = models.DecimalField()
  8. start_date = models.DateField()
  9. end_date = models.DateField()
  10. def __str__(self):
  11. return self.name