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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py
index e444261d9..ddc4eb913 100644
--- a/ishtar_common/widgets.py
+++ b/ishtar_common/widgets.py
@@ -1223,8 +1223,8 @@ class DataTable(Select2Media, forms.RadioSelect):
if "." in col_name:
keys = col_name.split(".")
for key in keys:
- if hasattr(field, "rel") and field.rel:
- field = field.rel.to
+ if hasattr(field, "remote_field") and field.remote_field:
+ field = field.remote_field.model
try:
field = field._meta.get_field(key)
field_verbose_name = field.verbose_name