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

edit logbooks, new logbook format, increased database normalisation

This commit is contained in:
Martin Green
2011-05-01 19:32:41 +01:00
parent d38a767d7c
commit a26310767b
12 changed files with 486 additions and 45 deletions

View File

@@ -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',)