@@ -20,7 +20,7 @@ def __str__(self):
2020 return self .version
2121
2222
23- class SourceLogicTreeComponent (models .Model ):
23+ class SourceLogicTreeSource (models .Model ):
2424 tag = models .CharField (max_length = 50 )
2525 notes = models .TextField (null = True , blank = True )
2626 inversion_toshi_id = models .CharField (max_length = 50 , null = False )
@@ -34,7 +34,7 @@ def __str__(self):
3434 return f"{ self .tag } { self .tectonic_region } "
3535
3636
37- class SourceLogicTreeWeightedComponent (models .Model ):
37+ class SourceLogicTreeBranch (models .Model ):
3838 weight = models .FloatField ()
3939 source_logic_tree = models .ForeignKey (
4040 SourceLogicTree ,
@@ -43,7 +43,7 @@ class SourceLogicTreeWeightedComponent(models.Model):
4343 on_delete = models .CASCADE ,
4444 )
4545 source_logic_tree_component = models .ForeignKey (
46- SourceLogicTreeComponent ,
46+ SourceLogicTreeSource ,
4747 related_name = "slt_weighted_components" ,
4848 null = True ,
4949 on_delete = models .SET_NULL ,
@@ -102,6 +102,6 @@ class HazardSolution(models.Model):
102102 LocationList , related_name = "hazard_solutions"
103103 )
104104 slt_components = models .ManyToManyField (
105- SourceLogicTreeWeightedComponent , related_name = "hazard_solutions"
105+ SourceLogicTreeBranch , related_name = "hazard_solutions"
106106 )
107107
0 commit comments