This commit is contained in:
behruz-dev
2025-08-19 17:19:31 +05:00
parent e5e890a0d3
commit aea31c80c6
3 changed files with 31 additions and 22 deletions

View File

@@ -22,7 +22,7 @@ class Order(BaseModel):
Unity, on_delete=models.CASCADE, related_name='orders'
)
project_folder = models.ForeignKey(
ProjectFolder, on_delete=models.CASCADE, related_name='order', null=True
ProjectFolder, on_delete=models.SET_NULL, related_name='order', null=True, blank=True
)
project = models.ForeignKey(
Project, on_delete=models.SET_NULL, related_name='orders', null=True, blank=True