From e3a82cb705141fbb6b44634242247fa19cef8a28 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 14 Feb 2024 17:16:02 +0100 Subject: [PATCH] fix: RelatedObjectDoesNotExist raised when no assignee exists --- pretalx_musicrate/__init__.py | 2 +- pretalx_musicrate/signals.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pretalx_musicrate/__init__.py b/pretalx_musicrate/__init__.py index f23a6b3..7e0dc0e 100644 --- a/pretalx_musicrate/__init__.py +++ b/pretalx_musicrate/__init__.py @@ -1 +1 @@ -__version__ = "0.13.0" +__version__ = "0.13.1" diff --git a/pretalx_musicrate/signals.py b/pretalx_musicrate/signals.py index 1231531..8fa234f 100644 --- a/pretalx_musicrate/signals.py +++ b/pretalx_musicrate/signals.py @@ -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",