Since generic.DatabaseOperations.column_sql can return None, we make sure we've got a string before attempting to remove 'PRIMARY_KEY' from the sql
Since generic.DatabaseOperations.column_sql can return None, we make sure we've got a string before attempting to remove 'PRIMARY_KEY' from the sql

smartfile/django-south,smartfile/django-south