Handle null case for Organisation str repr
This commit is contained in:
parent
8d6c76d072
commit
6ee352c789
1 changed files with 1 additions and 1 deletions
|
@ -422,7 +422,7 @@ class Organisation(models.Model):
|
||||||
subject = models.CharField(max_length=128, blank=True, null=True, choices=SUBJECT_CHOICES)
|
subject = models.CharField(max_length=128, blank=True, null=True, choices=SUBJECT_CHOICES)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.organisation_english
|
return self.organisation_english if self.organisation_english else ''
|
||||||
|
|
||||||
|
|
||||||
class RangeOnlineInfo(models.Model):
|
class RangeOnlineInfo(models.Model):
|
||||||
|
|
Loading…
Reference in a new issue