summaryrefslogtreecommitdiffstats
path: root/core/models/survex.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/models/survex.py')
-rw-r--r--core/models/survex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/models/survex.py b/core/models/survex.py
index 6b9a818..fabc381 100644
--- a/core/models/survex.py
+++ b/core/models/survex.py
@@ -205,7 +205,7 @@ class SurvexBlock(models.Model):
expedition = models.ForeignKey("Expedition", blank=True, null=True, on_delete=models.SET_NULL)
# if the survexfile object is deleted, then all the survex-blocks in it should be too,
# though a block can span more than one file...
- survexfile = models.ForeignKey("SurvexFile", blank=True, null=True, on_delete=models.CASCADE)
+ survexfile = models.ForeignKey("SurvexFile", blank=True, null=True, on_delete=models.CASCADE, db_index=True)
# survexpath = models.CharField(max_length=200, blank=True, null=True) No need for this anymore
scanswallet = models.ForeignKey(