diff options
author | luxagraf <sng@luxagraf.net> | 2018-01-21 11:08:43 -0700 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-01-21 11:08:43 -0700 |
commit | 342e3f0450f2a13fe3f2c99d0cc28d053592293e (patch) | |
tree | fb58e7b2b3a1659315162bf7028fd94afd888b6b /app/projects/models/fiveby.py | |
parent | 7dbb0c01c941f933914ff0f0d5567a4a7ac7e99c (diff) |
updated code to work with django 2.0
Diffstat (limited to 'app/projects/models/fiveby.py')
-rw-r--r-- | app/projects/models/fiveby.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/projects/models/fiveby.py b/app/projects/models/fiveby.py index b6c7e33..473c095 100644 --- a/app/projects/models/fiveby.py +++ b/app/projects/models/fiveby.py @@ -27,8 +27,8 @@ class FiveBy(models.Model): ) status = models.IntegerField(choices=PUB_STATUS, default=0) point = models.PointField(null=True) - location = models.ForeignKey(Location, null=True) - region = models.ForeignKey(Region, null=True) + location = models.ForeignKey(Location, on_delete=models.CASCADE, null=True) + region = models.ForeignKey(Region, on_delete=models.CASCADE, null=True) class Meta: ordering = ('-pub_date',) |