Handle null case for Organisation str repr

This commit is contained in:
app@gmba.django-hosting.ch 2021-12-07 04:45:37 +01:00
parent 8d6c76d072
commit 6ee352c789

View file

@ -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):