Python Django: Load Autofield to MySql Table using loaddata -


i have model 2 datefield - fields in it, dumped json using dumpdata. want load fixtures (i using south) mysql-database leads following error:

commanderror: database backend not accept 0 value autofield.

does know problem , solution it?

my database mysql (version 5.6.12) , i'm using django 1.5.1. used sqlite before , want change mysql.

found solution - had use dumpdata app.model --natural


Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -