[Persons] Offer caculated autocomplete identifiers 10146
This commit is contained in:
parent
e9ec1909b4
commit
d436650d2c
1 changed files with 6 additions and 1 deletions
|
@ -426,10 +426,15 @@ class Organisation(models.Model):
|
||||||
if self.organisation_english:
|
if self.organisation_english:
|
||||||
if self.organisation_2:
|
if self.organisation_2:
|
||||||
name = f"{self.organisation_english} ({self.organisation_2})"
|
name = f"{self.organisation_english} ({self.organisation_2})"
|
||||||
|
name = f"{self.country}-{self.organisation_english}-{self.organisation_2}-{self.organisation_3}-{self.acronym}"
|
||||||
|
|
||||||
else:
|
else:
|
||||||
name = f"{self.organisation_english}"
|
name = f"{self.organisation_english}"
|
||||||
|
name = f"{self.country}-{self.organisation_english}-{self.organisation_2}-{self.organisation_3}-{self.acronym}"
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
name = '---'
|
name = ' ---'
|
||||||
|
|
||||||
return name
|
return name
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue