Adding Simple Custom Field to Django — How to Write South Introspection Rules
I am trying to add a custom field to my Django project that uses South . Because of this, I am trying (for the first time) to write introspection rules for South . I believe my case is the simplest possible as I am simply extending a CharField. Specifically: class ColorField(models.CharField): def __init__(self, *args, **kwargs): kwargs['max_length'] = 10 super(ColorField, self).__init__(*args, **kwargs) def formfield(self, **kwargs): kwargs['widget'] = ColorPickerWidget return super(ColorField, self).formfield(**kwargs) This is from a Django snippet called jQuery color picker model field for