[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,8 +426,13 @@ 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 = ' ---'