title: errors during migration after moving to mariadb
body: <p>I made the switch from sqllite to mariadb today, the initial migration process halts during the migration of the thirdparty app called django-locality(it provides models countries and territories). </p>
  
  <p>Here is the error. </p>
  
  <pre><code>ValueError: Problem installing fixture '/code/lmalp/locality/fixtures/initial_data.json': The database backend does not accept 0 as a value for AutoField.
  </code></pre>