Skip to content

Commit

Permalink
Merge branch 'hotfix/bugfix-lists-logic'
Browse files Browse the repository at this point in the history
  • Loading branch information
pmayer committed Feb 7, 2022
2 parents 3c4b60a + 110b934 commit 3f7e129
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,16 @@ def to_data_dict(label, data, sort=True):
# document, event, conference, audio, film/video types
entry_type in journalistic_activity_types
and (
(e_data.authors is not None and any(i.source == user.username for i in e_data.authors))
or (e_data.editors is not None and any(i.source == user.username for i in e_data.editors))
(
hasattr(e_data, 'authors')
and e_data.authors is not None
and any(i.source == user.username for i in e_data.authors)
)
or (
hasattr(e_data, 'editors')
and e_data.editors is not None
and any(i.source == user.username for i in e_data.editors)
)
or (
e_data.contributors is not None
and any(
Expand Down

0 comments on commit 3f7e129

Please sign in to comment.