Skip to content

Commit

Permalink
fix: changed oneToOne to ForeginKey in 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 c473751 commit 6fdbbfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/backend/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Report(models.Model):
employee_going_vacation = models.BooleanField(default=False)
anyone_going_vacation = models.CharField(max_length=100,default="Nobody")
other_comments = models.TextField(max_length=1000,default="Nothing")
report_creater = models.OneToOneField(Employee, on_delete = models.DO_NOTHING,default=0)
report_creater = models.ForeignKey(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')
Expand Down

0 comments on commit 6fdbbfc

Please sign in to comment.