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",
|
"assignee",
|
||||||
["submission"],
|
["submission"],
|
||||||
lambda submission: (
|
lambda submission: (
|
||||||
assignee.user.name
|
submission.assignee.user.name
|
||||||
if (assignee := submission.assignee) is not None
|
if hasattr(submission, "assignee")
|
||||||
else "Günther"
|
else "Günther"
|
||||||
),
|
),
|
||||||
"Günther",
|
"Günther",
|
||||||
|
|
Loading…
Reference in New Issue