Skip to content

Commit

Permalink
Update emgapi/models.py
Browse files Browse the repository at this point in the history
Co-authored-by: Martín Beracochea <[email protected]>
  • Loading branch information
SandyRogers and mberacochea authored Sep 26, 2023
1 parent 388c6e4 commit b658921
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emgapi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def __add_to_suppressibles(kls, additional_suppressibles):
continue
# Check whether the descendant might have other non-suppressed ancestors of the same type as this
# (If so, it shouldn't be suppressed).
# This was written mostly for samples that are associated to multiples
# studies, such as a raw-reads study and the corresponding assembly study.
relation_field = self._meta.get_field(descendant_relation_name)
logger.info(f'{relation_field = }')
if isinstance(relation_field, models.ManyToManyField):
Expand Down

0 comments on commit b658921

Please sign in to comment.