mirror of https://gitlab.com/pamhyr/pamhyr2
Scenario: Fix scenario duplication.
parent
e26b170b05
commit
61156f1c3e
|
|
@ -52,6 +52,11 @@ class Reach(SQLSubModel):
|
|||
self._guidelines_is_valid = False
|
||||
self._guidelines = {}
|
||||
|
||||
super(Reach, self).__init__(
|
||||
id=parent.pamhyr_id,
|
||||
status=status,
|
||||
)
|
||||
|
||||
@property
|
||||
def pamhyr_id(self):
|
||||
return self._parent.pamhyr_id
|
||||
|
|
@ -60,6 +65,10 @@ class Reach(SQLSubModel):
|
|||
def _pamhyr_id(self):
|
||||
return self._parent.pamhyr_id
|
||||
|
||||
@_pamhyr_id.setter
|
||||
def _pamhyr_id(self, id):
|
||||
return
|
||||
|
||||
@classmethod
|
||||
def _db_create(cls, execute):
|
||||
return cls._create_submodel(execute)
|
||||
|
|
|
|||
Loading…
Reference in New Issue