diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2024-12-15 21:59:54 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2024-12-15 21:59:54 +0000 |
commit | e532b15c1d48947c6934995ed470e81293949de8 (patch) | |
tree | fdd52226b8ccbc38836c4c02bdbbfde3a7b432b2 /core/models/caves.py | |
parent | a836dd261951ff3c5d9641d8b7306d6df9660bf1 (diff) | |
download | troggle-e532b15c1d48947c6934995ed470e81293949de8.tar.gz troggle-e532b15c1d48947c6934995ed470e81293949de8.tar.bz2 troggle-e532b15c1d48947c6934995ed470e81293949de8.zip |
comments
Diffstat (limited to 'core/models/caves.py')
-rw-r--r-- | core/models/caves.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/models/caves.py b/core/models/caves.py index 12941d0..f1dd769 100644 --- a/core/models/caves.py +++ b/core/models/caves.py @@ -25,6 +25,8 @@ Gcave_count = None todo = """ - Why do we have CaveAndEntrance objects ? These do not need to be explcit for a many:many relationship these days +now only used to create a <form> for entranceletter +TO DO move entranceletter to Entrance - Restore constraint: unique_together = (("area", "kataster_number"), ("area", "unofficial_number")) or replace by a unique 'slug' field, better. @@ -32,11 +34,11 @@ todo = """ class CaveAndEntrance(models.Model): - """This class is ONLY used to create a FormSet for editing the cave and all its - entrances in one form. + """This class is ONLY used to create a FormSet for editing the entranceletter. CASCADE means that if the cave or the entrance is deleted, then this CaveAndEntrance is deleted too NOT NEEDED anymore if we insist that cave:entrances have 1:n multiplicity. + TO DO move entranceletter to Entrance """ cave = models.ForeignKey("Cave", on_delete=models.CASCADE) entrance = models.ForeignKey("Entrance", on_delete=models.CASCADE) |