Skip to content

Commit

Permalink
fix: added "final_report_color" field to report model
Browse files Browse the repository at this point in the history
  • Loading branch information
avinogrado authored and the-homeless-god committed Aug 31, 2024
1 parent 2032571 commit 935fde5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions application/backend/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ def __str__(self):
return self.first_name +" " + self.last_name

class Report(models.Model):
COLOR_CHOICES = {
"R": "Red",
"G": "Green",
"Y": "Yellow",
}
report_name = models.CharField(max_length=100)
report_start = models.DateTimeField()
report_finish = models.DateTimeField()
Expand All @@ -24,6 +29,7 @@ class Report(models.Model):
report_creater = models.OneToOneField(Employee, on_delete = models.DO_NOTHING,default=0)
related_project = models.ForeignKey(to="Project",on_delete=models.CASCADE,default=0)
is_deleted = models.BooleanField(default=False)
final_report_color = models.CharField(max_length=1,choices=COLOR_CHOICES,default='G')

def __str__(self):
return self.report_name
Expand Down

0 comments on commit 935fde5

Please sign in to comment.