diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-03-28 20:30:00 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-03-28 20:30:00 +0100 |
commit | 9ffe3f690b7b691a2ba28c3b0feae728a5aba3e9 (patch) | |
tree | 785a68966a3c1ca9e37edd9a445a1faea718172d /core/models | |
parent | e7d9e9402a2a21e0825adc9ad7f4c1327f4c1daf (diff) | |
download | troggle-9ffe3f690b7b691a2ba28c3b0feae728a5aba3e9.tar.gz troggle-9ffe3f690b7b691a2ba28c3b0feae728a5aba3e9.tar.bz2 troggle-9ffe3f690b7b691a2ba28c3b0feae728a5aba3e9.zip |
tidy up entranceSlug all now deleted
Diffstat (limited to 'core/models')
-rw-r--r-- | core/models/caves.py | 13 | ||||
-rw-r--r-- | core/models/logbooks.py | 2 |
2 files changed, 3 insertions, 12 deletions
diff --git a/core/models/caves.py b/core/models/caves.py index 8d94086..95cbeec 100644 --- a/core/models/caves.py +++ b/core/models/caves.py @@ -25,11 +25,11 @@ Gcave_count = None """ todo = """ -- Find out why we have separate objects CaveSlug and EntranceSlug and why +- Find out why we have separate objects CaveSlug and why these are not just a single field on the Model. Do we ever need more than one slug per cave or entrance? Surely that would break everything?? -- Can we rewrite things to eliminate the CaveSlug and EntranceSlug Classes and objects? Surely +- Can we rewrite things to eliminate the CaveSlug and objects? Surely foreign keys work fine ?! - Why do we have CaveAndEntrance objects ? Surely entranceletter belong son the Entrance object? @@ -259,15 +259,6 @@ class Cave(TroggleModel): pass return lowestareas[0] - -# class EntranceSlug(models.Model): - # """If the Entrance is deleted, then this EntranceSlug is deleted too - # """ - # entrance = models.ForeignKey("Entrance", on_delete=models.CASCADE) - # slug = models.SlugField(max_length=50, unique=True) - # # primary = models.BooleanField(default=False) - - class Entrance(TroggleModel): MARKING_CHOICES = ( ("P", "Paint"), diff --git a/core/models/logbooks.py b/core/models/logbooks.py index 361fb96..9a13b59 100644 --- a/core/models/logbooks.py +++ b/core/models/logbooks.py @@ -11,7 +11,7 @@ from troggle.core.models.troggle import Expedition, TroggleModel """ todo = """ -- Can we rewrite things to eliminate the CaveSlug and EntranceSlug Classes and objects? Surely +- Can we rewrite things to eliminate the CaveSlug and objects? Surely foreign keys work fine ?! """ |