summaryrefslogtreecommitdiff
path: root/ishtar_common/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/widgets.py')
-rw-r--r--ishtar_common/widgets.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py
index cb112b22b..e131521e0 100644
--- a/ishtar_common/widgets.py
+++ b/ishtar_common/widgets.py
@@ -1202,6 +1202,7 @@ class DataTable(Select2Media, forms.RadioSelect):
self.gallery = gallery
self.map = map
self.external_sources = None
+ self.form_permission = "view"
if self.col_prefix and not self.col_prefix.endswith("__"):
self.col_prefix += "__"
@@ -1314,6 +1315,7 @@ class DataTable(Select2Media, forms.RadioSelect):
"col_names": col_names,
"extra_cols": extra_cols,
"source": source,
+ "form_permission": self.form_permission,
"col_idx": col_idx,
"no_result": str(_("No results")),
"loading": str(_("Loading...")),