tidy up entranceSlug all now deleted

This commit is contained in:
2023-03-28 20:30:00 +01:00
parent e7d9e9402a
commit 9ffe3f690b
5 changed files with 10 additions and 75 deletions

View File

@@ -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"),