diff --git a/scipost_django/submissions/refereeing_cycles.py b/scipost_django/submissions/refereeing_cycles.py index 4f875b0ca390d7915d630cbc2368120ce9df1c17..d5fab14ef268e5b52b0850e886c9f82c6abb293c 100644 --- a/scipost_django/submissions/refereeing_cycles.py +++ b/scipost_django/submissions/refereeing_cycles.py @@ -105,10 +105,8 @@ class BaseAction: return text.format( count=len(self._objects), object=obj.__class__.__name__, - author=obj.author.formal_str - if hasattr(obj, "author") and obj.author - else "", - referee=obj.referee_str if hasattr(obj, "referee_str") else "", + author=obj.author.formal_str if getattr(obj, "author", None) else "", + referee=getattr(obj, "referee_str", ""), days=timedelta.days, deadline=deadline.days, deadline_min=-deadline.days,