summaryrefslogtreecommitdiffstats
path: root/core/models/caves.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-03-28 20:30:00 +0100
committerPhilip Sargent <philip.sargent@gmail.com>2023-03-28 20:30:00 +0100
commit9ffe3f690b7b691a2ba28c3b0feae728a5aba3e9 (patch)
tree785a68966a3c1ca9e37edd9a445a1faea718172d /core/models/caves.py
parente7d9e9402a2a21e0825adc9ad7f4c1327f4c1daf (diff)
downloadtroggle-9ffe3f690b7b691a2ba28c3b0feae728a5aba3e9.tar.gz
troggle-9ffe3f690b7b691a2ba28c3b0feae728a5aba3e9.tar.bz2
troggle-9ffe3f690b7b691a2ba28c3b0feae728a5aba3e9.zip
tidy up entranceSlug all now deleted
Diffstat (limited to 'core/models/caves.py')
-rw-r--r--core/models/caves.py13
1 files changed, 2 insertions, 11 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"),