fixed pid scheme

This commit is contained in:
Oliver Zander 2025-10-16 15:41:22 +02:00
parent 7e4d197384
commit 22aec6fdde
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ class Project(Volunteer):
super().save(**kwargs) super().save(**kwargs)
if not self.pid: if not self.pid:
self.pid = f'{self.account.code}-{self.id:08d}' self.pid = f'{self.account.code}{self.id:08d}'
super().save(update_fields=['pid'], using=using) super().save(update_fields=['pid'], using=using)
def should_generate_finance_id(self): def should_generate_finance_id(self):