2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 00:27:07 +00:00

Better debug messages

This commit is contained in:
2023-03-13 20:27:27 +00:00
parent d0a05af9c6
commit b428a87f1a
2 changed files with 36 additions and 26 deletions

View File

@@ -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