mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-11-01 10:33:53 +00:00
3 files changed
+4
-3
No files matched your search
@@ -42,7 +42,8 @@ class Organisation(models.Model):
|
||||
name = models.CharField(max_length=255, blank=False, null=False)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.name
|
||||
# Prefer name as in latest OrganisationAnswerSet
|
||||
return self.current_answers.name or self.name
|
||||
|
||||
@property
|
||||
def current_answers(self) -> 'OrganisationAnswerSet':
|
||||
|
||||
Reference in new issue
Block a user