fix: RelatedObjectDoesNotExist raised when no assignee exists
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Luca 2024-02-14 17:16:02 +01:00
parent 03b5a6ebf4
commit e3a82cb705
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
__version__ = "0.13.0" __version__ = "0.13.1"

View File

@ -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",