summaryrefslogtreecommitdiffstats
path: root/core/models/caves.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-03-21 12:56:51 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-03-21 12:56:51 +0000
commit7caf1690c62bd43f9eb3462a89d0631cba7298b0 (patch)
tree327f6ff8579767f5096cd031e3ce4fa487bd6e6c /core/models/caves.py
parent4ae79a642e079ecd366601649067680f1b66159c (diff)
downloadtroggle-7caf1690c62bd43f9eb3462a89d0631cba7298b0.tar.gz
troggle-7caf1690c62bd43f9eb3462a89d0631cba7298b0.tar.bz2
troggle-7caf1690c62bd43f9eb3462a89d0631cba7298b0.zip
fix download .3d file
Diffstat (limited to 'core/models/caves.py')
-rw-r--r--core/models/caves.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/models/caves.py b/core/models/caves.py
index 8b23ceb..0001814 100644
--- a/core/models/caves.py
+++ b/core/models/caves.py
@@ -94,7 +94,7 @@ class Cave(TroggleModel):
length = models.CharField(max_length=100, blank=True, null=True)
depth = models.CharField(max_length=100, blank=True, null=True)
extent = models.CharField(max_length=100, blank=True, null=True)
- survex_file = models.CharField(max_length=100, blank=True, null=True)
+ survex_file = models.CharField(max_length=100, blank=True, null=True) # should be a foreign key
description_file = models.CharField(max_length=200, blank=True, null=True)
url = models.CharField(max_length=200, blank=True, null=True)
filename = models.CharField(max_length=200)
@@ -109,6 +109,8 @@ class Cave(TroggleModel):
ordering = ("kataster_code", "unofficial_number")
def hassurvey(self):
+ """This is almost certainly a fossil - needs checking...
+ """
if not self.underground_centre_line:
return "No"
if (