summaryrefslogtreecommitdiff
path: root/postgresqleu/trustlypayment/models.py
diff options
context:
space:
mode:
authorVik Fearing2018-09-07 23:29:10 +0000
committerMagnus Hagander2018-09-07 23:29:10 +0000
commit8289e05cd549e3f7f137e8b0336b29f81fe23ed5 (patch)
treed0ab9e4d46a649a6e0315ed21f5f200b4855538e /postgresqleu/trustlypayment/models.py
parent69ae4f286fd6bf2305c7aeca69598b6bc88a2741 (diff)
Specify on_delete parameter for all ForeignKeys
This will be required in future Django versions, and currently throws deprecation warnings.
Diffstat (limited to 'postgresqleu/trustlypayment/models.py')
-rw-r--r--postgresqleu/trustlypayment/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/trustlypayment/models.py b/postgresqleu/trustlypayment/models.py
index 13dc54c2..2de9061f 100644
--- a/postgresqleu/trustlypayment/models.py
+++ b/postgresqleu/trustlypayment/models.py
@@ -22,7 +22,7 @@ class TrustlyRawNotification(models.Model):
class TrustlyNotification(models.Model):
receivedat = models.DateTimeField(null=False, blank=False, auto_now_add=True, unique=True)
- rawnotification = models.ForeignKey(TrustlyRawNotification, null=True, blank=True)
+ rawnotification = models.ForeignKey(TrustlyRawNotification, null=True, blank=True, on_delete=models.CASCADE)
notificationid = models.BigIntegerField(null=False, blank=False)
orderid = models.BigIntegerField(null=False, blank=False)
method = models.CharField(max_length=80, null=False, blank=False)