From d4a9eb9740c58aeda298e214262a743a2e203168 Mon Sep 17 00:00:00 2001 From: Timur Sufiev Date: Tue, 3 Sep 2013 18:32:42 +0400 Subject: [PATCH] Add logger. Change-Id: I9b73a7235df3b064cda3a6baa736176e67d6bb8a --- muranodashboard/panel/services/fields.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/muranodashboard/panel/services/fields.py b/muranodashboard/panel/services/fields.py index 078a84259..6aa4521f0 100644 --- a/muranodashboard/panel/services/fields.py +++ b/muranodashboard/panel/services/fields.py @@ -27,6 +27,9 @@ from muranodashboard.datagrids import DataGridCompound from django.template.defaultfilters import pluralize import copy import types +import logging + +log = logging.getLogger(__name__) def with_request(func): @@ -72,6 +75,7 @@ class PasswordField(CharField): return name + '-clone' def compare(self, name, form_data): + log.debug('Inside PasswordField compare method') if self.is_original() and self.required: # run compare only for original fields # do not run compare for hidden fields (they are not required)