Add logger.

Change-Id: I9b73a7235df3b064cda3a6baa736176e67d6bb8a
This commit is contained in:
Timur Sufiev 2013-09-03 18:32:42 +04:00
parent 1c6f09b8f4
commit d4a9eb9740
1 changed files with 4 additions and 0 deletions

View File

@ -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)