Commits

megaman821  committed 8ad8081

fixed a bug in clean()

  • Participants
  • Parent commits 57da1cf

Comments (0)

Files changed (2)

File form_extensions/__init__.py

     'minor': 1,
     'micro': 0,
     'releaselevel': 'alpha',
-    'serial': 1
+    'serial': 2
 }
 
 def get_version(short=False):
         vers.append('%s%i' % (__version_info__['releaselevel'][0], __version_info__['serial']))
     return ''.join(vers)
 
-__version__ = get_version()
+__version__ = get_version()

File form_extensions/fields.py

         self.element_replacements = element_replacements
 
     def clean(self, value):
-        value = utils.replace_elements(value, self.element_replacements)
-        value = utils.remove_empty_paragraphs(value)
-        value = utils.bleach(value, self.allowed_tags, self.allowed_attributes, self.allowed_styles)
+        value = replace_elements(value, self.element_replacements)
+        value = remove_empty_paragraphs(value)
+        value = bleach(value, self.allowed_tags, self.allowed_attributes, self.allowed_styles)
         return super(HTMLField, self).clean(value)