From a26310767ba885bcb403e08f8060f045e4716e08 Mon Sep 17 00:00:00 2001 From: Martin Green Date: Sun, 1 May 2011 19:32:41 +0100 Subject: edit logbooks, new logbook format, increased database normalisation --- core/models_survex.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/models_survex.py') diff --git a/core/models_survex.py b/core/models_survex.py index 7b652b7..ed21658 100644 --- a/core/models_survex.py +++ b/core/models_survex.py @@ -92,6 +92,9 @@ class SurvexBlock(models.Model): class Meta: ordering = ('id',) + def isSurvexBlock(self): # Function used in templates + return True + def __unicode__(self): return self.name and unicode(self.name) or 'no name' @@ -188,4 +191,4 @@ class TunnelFile(models.Model): class Meta: ordering = ('tunnelpath',) - \ No newline at end of file + -- cgit v1.2.3