From d9993f19421218d533955cebe39218527f4f52f1 Mon Sep 17 00:00:00 2001 From: Ezequiel Bertti Date: Wed, 19 Apr 2017 17:31:34 -0300 Subject: [PATCH] Get some classname when field is a custom field --- suit/templatetags/suit_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suit/templatetags/suit_forms.py b/suit/templatetags/suit_forms.py index 1befd81a..bfc8d328 100644 --- a/suit/templatetags/suit_forms.py +++ b/suit/templatetags/suit_forms.py @@ -72,7 +72,7 @@ def get_field_widget_class_name(field): widget_class_name = field.field.widget.__class__.__name__ return widget_class_name except AttributeError: - pass + return "CustomAdminField" @register.filter