Consolidation en cas de catégories dupliquées
This commit is contained in:
parent
1b59ce34f2
commit
7f79b7797a
@ -1708,7 +1708,7 @@ def apply_categorisation_rules(request):
|
||||
nb = 0
|
||||
for epk, c in form.get_validated():
|
||||
e = Event.objects.get(pk=epk)
|
||||
cat = Category.objects.get(name=c)
|
||||
cat = Category.objects.filter(name=c).first()
|
||||
e.category = cat
|
||||
e.save()
|
||||
nb += 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user