diff --git a/aircox/management/commands/diffusions.py b/aircox/management/commands/diffusions.py index db51a76..9841411 100755 --- a/aircox/management/commands/diffusions.py +++ b/aircox/management/commands/diffusions.py @@ -70,7 +70,6 @@ class Actions: # by schedule; items = schedule.diffusions_of_month(date, exclude_saved = True) count[0] += len(items) - print(*[item.date for item in items]) if manual: Diffusion.objects.bulk_create(items) diff --git a/notes.md b/notes.md index c7039e5..23665e8 100755 --- a/notes.md +++ b/notes.md @@ -40,6 +40,17 @@ cms: - comments -> remove/edit by the author +# error when generating diffusions (when all page of a page have been removed): +seems like the numchild attribute is not updated correctly when calling page.delete() + + ``` + File "/srv/apps/aircox/venv/lib/python3.5/site-packages/treebeard/mp_tree.py", line 977, in add_child + return MP_AddChildHandler(self, **kwargs).process() + File "/srv/apps/aircox/venv/lib/python3.5/site-packages/treebeard/mp_tree.py", line 360, in process + newobj.path = self.node.get_last_child()._inc_path() + AttributeError: 'NoneType' object has no attribute '_inc_path' + ``` + # Instance's TODO - menu_top .sections: - display inline block