On fixe le cas des événements sans description
This commit is contained in:
parent
ed7944aaa9
commit
5e65ecdb5c
@ -2026,7 +2026,7 @@ class CategorisationRule(models.Model):
|
|||||||
if self.desc_exact:
|
if self.desc_exact:
|
||||||
result = self.description_contains in event.description
|
result = self.description_contains in event.description
|
||||||
else:
|
else:
|
||||||
result = (
|
result = event.description and (
|
||||||
remove_accents(self.description_contains).lower()
|
remove_accents(self.description_contains).lower()
|
||||||
in remove_accents(event.description).lower()
|
in remove_accents(event.description).lower()
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user