Si la catégorie est défaut, on autorise aussi la modification des catégories à la création
This commit is contained in:
parent
27d44f6918
commit
5a76fc8aea
@ -718,7 +718,7 @@ class Event(models.Model):
|
|||||||
self.exact_location = p
|
self.exact_location = p
|
||||||
break
|
break
|
||||||
# try to detect category
|
# try to detect category
|
||||||
if not self.category:
|
if not self.category or self.category.name == Category.default_name:
|
||||||
CategorisationRule.apply_rules(self)
|
CategorisationRule.apply_rules(self)
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user