forked from expo/troggle
tidy up entranceSlug all now deleted
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user