I have updated to South 0.7.6 and used solution from the South documentation. Simply added to_python()
and get_prep_value()
methods to leave slug
field as is.
class AutoSlugField(models.CharField):
def pre_save(self, blog, *args, **kwargs):
return slugify(unicode(blog))
def to_python(self, value):
return value
def get_prep_value(self, value):
return value