summaryrefslogtreecommitdiffstats
path: root/core/models/logbooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/models/logbooks.py')
-rw-r--r--core/models/logbooks.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/core/models/logbooks.py b/core/models/logbooks.py
index b594945..361fb96 100644
--- a/core/models/logbooks.py
+++ b/core/models/logbooks.py
@@ -150,8 +150,8 @@ class QM(TroggleModel):
blockname = models.TextField(blank=True, null=True) # NB truncated copy of survexblock name with last char added
expoyear = models.CharField(max_length=4, blank=True, null=True)
ticked = models.BooleanField(default=False)
- location_description = models.TextField(blank=True)
- completion_description = models.TextField(blank=True)
+ location_description = models.TextField(blank=True, null=True)
+ completion_description = models.TextField(blank=True, null=True)
completion_date = models.DateField(blank=True, null=True)
nearest_station_name = models.CharField(max_length=200, blank=True, null=True)
resolution_station_name = models.CharField(max_length=200, blank=True, null=True)
@@ -177,17 +177,17 @@ class QM(TroggleModel):
blocknamestr = ""
return f"{cavestr}-{expoyearstr}-{self.number}{self.grade}{blocknamestr}"
- def get_completion_url(self):
- """assumes html file named is in same folder as cave description file
- WRONG - needs rewriting!"""
- cd = None
- if self.completion_description:
- try:
- dir = Path(self.cave.url).parent
- cd = dir / self.completion_description
- except:
- cd = None
- return cd
+ # def get_completion_url(self):
+ # """assumes html file named is in same folder as cave description file
+ # WRONG - needs rewriting!"""
+ # cd = None
+ # if self.completion_description:
+ # try:
+ # dir = Path(self.cave.url).parent
+ # cd = dir / self.completion_description
+ # except:
+ # cd = None
+ # return cd
def newslug(self):
qmslug = f"{str(self.cave)}-{self.expoyear}-{self.blockname}{self.number}{self.grade}"