learning-unlimited/ESP-Website — comment on commit 5e40a31a7502caef1c20235f2eaf94e1e33c368d
File: esp/esp/qsd/seltests.py line 40
By gkanwar:

So the database error I was getting was on this line. The error was:
```
IntegrityError: insert or update on table "users_userbit" violates foreign key constraint "qsc_id_refs_id_794ffb68f5262fc3"
DETAIL: Key (qsc_id)=(4) is not present in table "datatree_datatree".
```

By changing this to a get_or_create, I'm now getting:
```DatabaseError: no such savepoint```