[Persons] Offer caculated autocomplete identifiers 10146

This commit is contained in:
asamihassan 2022-03-27 17:44:32 +05:00
parent e9ec1909b4
commit d436650d2c

View file

@ -426,10 +426,15 @@ class Organisation(models.Model):
if self.organisation_english:
if 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:
name = f"{self.organisation_english}"
name = f"{self.country}-{self.organisation_english}-{self.organisation_2}-{self.organisation_3}-{self.acronym}"
else:
name = '---'
name = ' ---'
return name