David Cramer committed f2c6506

support for django-south

  • Participants
  • Parent commits ec9167b

Comments (0)

Files changed (1)

File bbcode/

     def formfield(self, **kwargs):
         return models.TextField.formfield(self, form_class=BBCodeFormField, **kwargs)
+    def south_field_triple(self):
+        "Returns a suitable description of this field for South."
+        from south.modelsinspector import introspector
+        field_class = "django.db.models.fields.TextField"
+        args, kwargs = introspector(self)
+        return (field_class, args, kwargs)
 class BBCodeCharField(models.CharField):
     BBCodeField for a database which basically is a CharField but uses the