Django 1.8 drops the name
field from ContentType
in favour of a property on the model itself (see https://docs.djangoproject.com/en/1.8/ref/contrib/contenttypes/#the-contenttype-model).
If you update to 1.8 and then back to 1.7 (for whatever crazy reason..) you will come across exceptions as the name
property doesn't exist (and neither does the database field).
These scripts restore that functionality to Django 1.7 (by recreating the field and populating it correctly).
It does not cause any data loss, but as always: Use at your own risk.