[svn] I initial work at adding caveareas. (Descirprion of parts of caves)

Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8226 by julian @ 1/24/2009 6:49 PM
This commit is contained in:
substantialnoninfringinguser
2009-05-13 05:45:26 +01:00
parent 98a3d44eed
commit efd4708526
7 changed files with 56 additions and 27 deletions

View File

@@ -362,6 +362,14 @@ class Entrance(models.Model):
for f in self.FINDABLE_CHOICES:
if f[0] == self.findability:
return f[1]
class CaveArea(models.Model):
description = models.TextField()
name = models.CharField(max_length=200, unique = True)
cave = models.ForeignKey('Cave')
parentArea = models.ForeignKey('CaveArea')
survexFile = models.CharField(max_length=200)
class QM(models.Model):
#based on qm.csv in trunk/expoweb/smkridge/204 which has the fields: