toastdriven/django-tastypie — pull request #821 by devfeng (2013-02-16 08:15:39+00:00)
Title: BUGFIX: instance creation conflict when loading fixtures due to incorrect signal code

When writing a signal, is it always good to check the "raw" argument. Failure to do so would cause crash in the process of loading fixtures, when a model is set to be creating new instance using that signal (e.g., profile auto creation).

To reproduce the bug, make sure there are API keys in the database already, perform "dumpdata" using Django command to a json file, wipe the database, syncdb, and then "loaddata" from previous saved json file.

For example:
```
$ (venv) python manage.py dumpdata --indent 4 > data.json
$
$ (venv) python manage.py syncdb
$ (venv) python manage.py loaddata data.json
```

Error is:
```
IntegrityError: Could not load tastypie.ApiKey(pk=1): column user_id is not unique
```

This commit fixed the loaddata bug.