simpler-parent-select
This commit is contained in:
parent
bb41c02d62
commit
30757fb38a
|
@ -734,7 +734,6 @@ async def set_topic_parent(
|
||||||
|
|
||||||
# Если устанавливаем корневую тему
|
# Если устанавливаем корневую тему
|
||||||
if parent_id is None:
|
if parent_id is None:
|
||||||
old_parent_ids: list[int] = list(topic.parent_ids or [])
|
|
||||||
topic.parent_ids = [] # type: ignore[assignment]
|
topic.parent_ids = [] # type: ignore[assignment]
|
||||||
session.commit()
|
session.commit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user