From e35fccea5d52bd9f64820335a7bf1dbd38e6157e Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 30 Jan 2023 22:27:17 +0000 Subject: Removed unused properties and moving --- core/models/survex.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core/models/survex.py') diff --git a/core/models/survex.py b/core/models/survex.py index 6507c71..11ede65 100644 --- a/core/models/survex.py +++ b/core/models/survex.py @@ -126,7 +126,6 @@ class SurvexBlock(models.Model): name = models.CharField(max_length=100) title = models.CharField(max_length=200) parent = models.ForeignKey("SurvexBlock", blank=True, null=True, on_delete=models.SET_NULL) - cave = models.ForeignKey("Cave", blank=True, null=True, on_delete=models.SET_NULL) date = models.DateField(blank=True, null=True) expedition = models.ForeignKey("Expedition", blank=True, null=True, on_delete=models.SET_NULL) @@ -169,9 +168,8 @@ class SurvexPersonRole(models.Model): survexblock = models.ForeignKey("SurvexBlock", on_delete=models.CASCADE) # increasing levels of precision, Surely we only need survexblock and person now that we have no link to a logbook entry? personname = models.CharField(max_length=100) - person = models.ForeignKey("Person", blank=True, null=True, on_delete=models.SET_NULL) + person = models.ForeignKey("Person", blank=True, null=True, on_delete=models.SET_NULL) # not needed personexpedition = models.ForeignKey("PersonExpedition", blank=True, null=True, on_delete=models.SET_NULL) - # expeditionday = models.ForeignKey("ExpeditionDay", null=True,on_delete=models.SET_NULL) def __str__(self): return str(self.personname) + " - " + str(self.survexblock) -- cgit v1.2.3