summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/models/survex.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/models/survex.py b/core/models/survex.py
index 6a0a357..0e336ab 100644
--- a/core/models/survex.py
+++ b/core/models/survex.py
@@ -153,11 +153,11 @@ class SurvexBlock(models.Model):
class Meta:
ordering = ("id",)
- def __str__(self):
- return "[SurvexBlock:" + str(self.name) + "-path:" + str(self.survexpath) + "-cave:" + str(self.cave) + "]"
+ # def __str__(self):
+ # return "[SurvexBlock:" + str(self.name) + "-path:" + str(self.survexpath) + "-cave:" + str(self.cave) + "]"
def __str__(self):
- return self.name and str(self.name) or "no name"
+ return self.name and str(self.name) or "no_name-#" + str(self.id)
def isSurvexBlock(self): # Function used in templates
return True