summaryrefslogtreecommitdiffstats
path: root/core/models.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-07-06 20:27:31 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-07-06 20:27:31 +0100
commitd2833d26ccc365d1f24620271cfe74236bcef1de (patch)
tree9588ab10a2a8dfdff6c251c59c48556c92d27c11 /core/models.py
parent8530b0643d552dbaaeef42c8598afd9402338793 (diff)
downloadtroggle-d2833d26ccc365d1f24620271cfe74236bcef1de.tar.gz
troggle-d2833d26ccc365d1f24620271cfe74236bcef1de.tar.bz2
troggle-d2833d26ccc365d1f24620271cfe74236bcef1de.zip
fix schema and try cache caves import
Diffstat (limited to 'core/models.py')
-rw-r--r--core/models.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/core/models.py b/core/models.py
index 9900dd4..c8eb965 100644
--- a/core/models.py
+++ b/core/models.py
@@ -160,12 +160,6 @@ class Person(TroggleModel):
notability += Decimal(1) / (max_expo_val - int(personexpedition.expedition.year))
return notability
- def legslength(self):
- for personexpedition in self.personexpedition_set.all():
- if not personexpedition.is_guest:
- length += personexpedition.legslength
- return length
-
def bisnotable(self):
return self.notability() > Decimal(1)/Decimal(3)
@@ -183,7 +177,6 @@ class PersonExpedition(TroggleModel):
expedition = models.ForeignKey(Expedition,on_delete=models.CASCADE)
person = models.ForeignKey(Person,on_delete=models.CASCADE)
slugfield = models.SlugField(max_length=50,blank=True, null=True)
- legslength = models.FloatField(null=True)
is_guest = models.BooleanField(default=False)
COMMITTEE_CHOICES = (