summaryrefslogtreecommitdiff
path: root/app/income/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/income/models.py')
-rw-r--r--app/income/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/income/models.py b/app/income/models.py
index dbb03bf..68b963f 100644
--- a/app/income/models.py
+++ b/app/income/models.py
@@ -35,8 +35,8 @@ class Gig(models.Model):
)
pay_type = models.IntegerField(choices=PAY_TYPE, default=1)
word_count = models.DecimalField(max_digits=7, decimal_places=0, blank=True, null=True)
- publisher = models.ForeignKey(Publisher, blank=True, null=True)
- pub_item = models.ForeignKey(PubItem, blank=True, null=True)
+ publisher = models.ForeignKey(Publisher, on_delete=models.CASCADE, blank=True, null=True)
+ pub_item = models.ForeignKey(PubItem, on_delete=models.CASCADE, blank=True, null=True)
def __str__(self):
return self.title