Coorection d'un bug dans l'application des questions

This commit is contained in:
Jean-Marie Favreau 2024-04-16 11:32:36 +02:00
parent 37393eea13
commit 96143c03a4

View File

@ -910,10 +910,12 @@ class ModerationAnswer(models.Model):
def valid_event(self, event): def valid_event(self, event):
if event.tags: if event.tags:
if self.adds_tags:
for t in self.adds_tags: for t in self.adds_tags:
if t not in event.tags: if t not in event.tags:
return False return False
if self.removes_tags:
for t in self.removes_tags: for t in self.removes_tags:
if t in event.tags: if t in event.tags:
return False return False