diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-01-30 22:27:17 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-01-30 22:27:17 +0000 |
commit | e35fccea5d52bd9f64820335a7bf1dbd38e6157e (patch) | |
tree | 48a6d09b4e05dd5687432aec2906c54c9de161e0 /core/models/survex.py | |
parent | 7808005498b06d11775e83a614657fd6cbb476b8 (diff) | |
download | troggle-e35fccea5d52bd9f64820335a7bf1dbd38e6157e.tar.gz troggle-e35fccea5d52bd9f64820335a7bf1dbd38e6157e.tar.bz2 troggle-e35fccea5d52bd9f64820335a7bf1dbd38e6157e.zip |
Removed unused properties and moving
Diffstat (limited to 'core/models/survex.py')
-rw-r--r-- | core/models/survex.py | 4 |
1 files changed, 1 insertions, 3 deletions
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) |