From 6ee352c789a43b9090fd16e1a74d59dddb63a498 Mon Sep 17 00:00:00 2001 From: "app@gmba.django-hosting.ch" Date: Tue, 7 Dec 2021 04:45:37 +0100 Subject: [PATCH] Handle null case for Organisation str repr --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 816ba00..cc352e9 100644 --- a/app/models.py +++ b/app/models.py @@ -422,7 +422,7 @@ class Organisation(models.Model): subject = models.CharField(max_length=128, blank=True, null=True, choices=SUBJECT_CHOICES) def __str__(self): - return self.organisation_english + return self.organisation_english if self.organisation_english else '' class RangeOnlineInfo(models.Model):