This commit is contained in:
Nikola Kubiczek 2021-12-09 15:19:03 +01:00
parent 7167992486
commit 2a2d4c1a3a

View File

@ -132,7 +132,7 @@ class School(AbstractBaseUser, PermissionsMixin):
def updateTeam(self): def updateTeam(self):
with transaction.atomic(): with transaction.atomic():
identifier = f'{Edition.current().year}-{self.id}' identifier = f'{Edition.current().year}-{self.id}-'
Student.objects.filter(identifier__startswith=identifier).update( Student.objects.filter(identifier__startswith=identifier).update(
school_name=self.name, school_name=self.name,