mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-17 07:47:20 +00:00
Added two indexes to foreign keys
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user