Added viz hint if PES is part of reaction

This commit is contained in:
Tim Lorsbach
2026-06-19 09:32:34 +02:00
parent 297c87f4d9
commit 831496992c
6 changed files with 16 additions and 14 deletions

View File

@ -576,6 +576,10 @@ class ReactionIdentifierMixin(ExternalIdentifierMixin):
def get_uniprot_identifiers(self):
return self.get_external_identifier("UniProt")
def contains_pes(self):
from bayer.models import PESStructure
return any([isinstance(o, PESStructure) for o in self.educts.all()]) or any(
[isinstance(o, PESStructure) for o in self.products.all()])
##############
# EP Objects #