Le organisateurs sont définis si on met à jour

This commit is contained in:
Jean-Marie Favreau 2025-01-19 14:44:35 +01:00
parent 9d84f4f630
commit bc147016e5

View File

@ -1572,8 +1572,8 @@ class Event(models.Model):
def update(self, other, all):
# do not update if all is false
if other.has_pending_organisers() and not all:
# integrate pending organisers
if other.has_pending_organisers():
self.organisers.set(other.pending_organisers)
# set attributes