On ne change la catégorie que si elle n'est pas définie
This commit is contained in:
parent
760ba7b75e
commit
4b97f8c222
@ -705,7 +705,8 @@ class Event(models.Model):
|
|||||||
self.exact_location = p
|
self.exact_location = p
|
||||||
break
|
break
|
||||||
# try to detect category
|
# try to detect category
|
||||||
CategorisationRule.apply_rules(self)
|
if not self.category:
|
||||||
|
CategorisationRule.apply_rules(self)
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
self.prepare_save()
|
self.prepare_save()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user