diff options
author | Vik Fearing | 2018-09-07 23:29:10 +0000 |
---|---|---|
committer | Magnus Hagander | 2018-09-07 23:29:10 +0000 |
commit | 8289e05cd549e3f7f137e8b0336b29f81fe23ed5 (patch) | |
tree | d0ab9e4d46a649a6e0315ed21f5f200b4855538e /postgresqleu/trustlypayment/models.py | |
parent | 69ae4f286fd6bf2305c7aeca69598b6bc88a2741 (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.py | 2 |
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) |