summaryrefslogtreecommitdiff
path: root/app/locations/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/locations/models.py')
-rw-r--r--app/locations/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/locations/models.py b/app/locations/models.py
index f9a3e5b..b4ee6f7 100644
--- a/app/locations/models.py
+++ b/app/locations/models.py
@@ -121,6 +121,7 @@ class Location(models.Model):
slug = models.SlugField()
pub_date = models.DateTimeField('Date published')
geometry = models.MultiPolygonField(srid=4326)
+ parent = models.ForeignKey('self', on_delete=models.CASCADE, blank=True, null=True)
class Meta:
ordering = ('-pub_date',)