From b1f5bad2ddaebe2dd9943333d7efd131f63896e9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 16 Aug 2016 16:57:14 +0200 Subject: Account management: fix edit - can delete an account (refs #2977) --- ishtar_common/widgets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ishtar_common/widgets.py') diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py index 6d9600d0c..83fb23caf 100644 --- a/ishtar_common/widgets.py +++ b/ishtar_common/widgets.py @@ -539,7 +539,9 @@ class JQueryJqGrid(forms.RadioSelect): col_names = [col_names] for col_name in col_names: field = self.associated_model - keys = col_name.split('.') + keys = col_name.split('__') + if '.' in col_name: + keys = col_name.split('.') f_name = '' for key in keys: if hasattr(field, 'rel') and field.rel: -- cgit v1.2.3