From efd47085261e73c08e8d5fe9eaadbc8f761fe7ac Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Wed, 13 May 2009 05:45:26 +0100 Subject: [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 --- expo/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'expo/models.py') 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: -- cgit v1.2.3