Maybe isinstance(value, six.string_types) ?

django.utils.six comes with Django 1.5

otherwise use this trick : https://github.com/spiral-project/daybed/blob/dev/setup.py#L62-L63