forked from enviPath/enviPy
[Fix] Adjust Rules according to manual QA, Add missing Rule (#452)
Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#452
This commit is contained in:
@ -854,9 +854,15 @@ class Compound(
|
||||
@property
|
||||
def related_reactions(self):
|
||||
return (
|
||||
Reaction.objects.filter(package=self.package, educts__in=[self.default_structure])
|
||||
| Reaction.objects.filter(package=self.package, products__in=[self.default_structure])
|
||||
).order_by("name")
|
||||
(
|
||||
Reaction.objects.filter(package=self.package, educts__in=[self.default_structure])
|
||||
| Reaction.objects.filter(
|
||||
package=self.package, products__in=[self.default_structure]
|
||||
)
|
||||
)
|
||||
.distinct()
|
||||
.order_by("name")
|
||||
)
|
||||
|
||||
@property
|
||||
def related_nodes(self):
|
||||
|
||||
Reference in New Issue
Block a user