This commit is contained in:
@@ -57,7 +57,7 @@ def create_draft_dict(draft: Draft) -> dict[str, Any]:
|
||||
{"id": a.id, "name": a.name, "slug": a.slug, "pic": getattr(a, "pic", None)} for a in (draft.authors or [])
|
||||
],
|
||||
"topics": [
|
||||
{"id": t.id, "name": t.name, "slug": t.slug, "is_main": getattr(t, "is_main", False)}
|
||||
{"id": t.id, "name": t.title, "slug": t.slug, "is_main": getattr(t, "is_main", False)}
|
||||
for t in (draft.topics or [])
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user