fix: RelatedObjectDoesNotExist raised when no assignee exists
This commit is contained in:
parent
03b5a6ebf4
commit
e3a82cb705
|
@ -1 +1 @@
|
|||
__version__ = "0.13.0"
|
||||
__version__ = "0.13.1"
|
||||
|
|
|
@ -13,8 +13,8 @@ def pretalx_musicrate_placeholders(sender, **kwargs):
|
|||
"assignee",
|
||||
["submission"],
|
||||
lambda submission: (
|
||||
assignee.user.name
|
||||
if (assignee := submission.assignee) is not None
|
||||
submission.assignee.user.name
|
||||
if hasattr(submission, "assignee")
|
||||
else "Günther"
|
||||
),
|
||||
"Günther",
|
||||
|
|
Loading…
Reference in New Issue