Skip to content

Commit 9b481c2

Browse files
committed
fix: fix empty docs_prepopulate render
1 parent c1e572c commit 9b481c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ckanext/resource_docs/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get(self, package_id: str, resource_id: str) -> str:
4040
break
4141

4242
return tk.render(
43-
"resource_docs/edit.html", {"docs_prepopulate": docs, "pkg_dict": pkg_dict, "resource": resource}
43+
"resource_docs/edit.html", {"docs_prepopulate": docs or "{}", "pkg_dict": pkg_dict, "resource": resource}
4444
)
4545

4646

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ckanext-resource-docs"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
description = "A CKAN extension that lets you attach a flexible, schema-free data dictionary (“resource documentation”) to any resource, not just Datastore-backed ones."
55
readme = "README.md"
66
authors = [{ name = "Oleksandr Cherniavskiy", email = "[email protected]" }]

0 commit comments

Comments
 (0)