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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user