1. dwaiter
  2. django-ckeditor

Commits

Mikhail Korobov  committed b71dce8

HTMLField is now compatible with South

  • Participants
  • Parent commits f3beece
  • Branches default

Comments (0)

Files changed (1)

File ckeditor/fields.py

View file
 
 class HTMLField(models.TextField):
     """A string field for HTML content. It uses the CKEditor widget in forms."""
-    
+
     def formfield(self, **kwargs):
         defaults = { 'widget': ckeditor_widgets.CKEditor }
         defaults.update(kwargs)
-        
+
         if defaults['widget'] == admin_widgets.AdminTextareaWidget:
             defaults['widget'] = ckeditor_widgets.AdminCKEditor
-        
+
         return super(HTMLField, self).formfield(**defaults)
-    
 
+try:
+    from south.modelsinspector import add_introspection_rules
+    add_introspection_rules([], ["^ckeditor\.fields\.HTMLField"])
+except ImportError:
+    pass