summaryrefslogtreecommitdiffstats
path: root/expo/models.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:45:26 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:45:26 +0100
commitefd47085261e73c08e8d5fe9eaadbc8f761fe7ac (patch)
tree25301974c2bab519cdec78d47db4b4f0100b956f /expo/models.py
parent98a3d44eed3286da2c0124253c89d83f16aa095b (diff)
downloadtroggle-efd47085261e73c08e8d5fe9eaadbc8f761fe7ac.tar.gz
troggle-efd47085261e73c08e8d5fe9eaadbc8f761fe7ac.tar.bz2
troggle-efd47085261e73c08e8d5fe9eaadbc8f761fe7ac.zip
[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
Diffstat (limited to 'expo/models.py')
-rw-r--r--expo/models.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/expo/models.py b/expo/models.py
index 50140aa..058fff5 100644
--- a/expo/models.py
+++ b/expo/models.py
@@ -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: