title: Django: loaddata not working
body: <p>I generated a fixture:</p>
  
  <pre><code>python manage.py dumpdata --all &gt; ./mydump.json
  </code></pre>
  
  <p>I emptied all my databases using:</p>
  
  <pre><code>python manage.py sqlflush | psql mydatabase -U mydbuser
  </code></pre>
  
  <p>But when i try to use loaddata:</p>
  
  <pre><code>python manage.py loaddata ./mydump.json
  </code></pre>
  
  <p>I'm recieving this error:</p>
  
  <pre><code>IntegrityError: Could not load tastypie.ApiKey(pk=1): duplicate key 
  value violates unique constraint "tastypie_apikey_user_id_key" 
  DETAIL:  Key (user_id)=(2) already exists.
  </code></pre>
  
  <p>I'm having this problem on production and i'm out of ideas. Someone had a similar problem?</p>