python - Django sqlite downgrade loaddata Could not load contenttypes.ContentType(pk=1): no such column: name -


i upgrade django 1.6 installation django 1.8. had extended user model , using south. when made migrations supidly didnt realize wrong models overrwritte 3 columns of user model.

i had made backup dumbdata json file before upgrading django 1.6.

i dont know restore db, first downgrade django 1.6 (i dont know if necessary)

then try load backup loaddata (it made befor upgrading django 1.8) , getting error:

 not load contenttypes.contenttype(pk=1): no such column: name 

i check documentation of contentypes: https://docs.djangoproject.com/en/1.8/ref/contrib/contenttypes/#django.contrib.contenttypes.models.contenttype.name

"it says before django 1.8, name property real field on contenttype model."

im stuck, can give me advice? how can rename or create field? can restore entire db json file?

what do?

thanks

you need edit json fixture file make match new state of contenttype model.

i guess removing name keys json file enough.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -