Delete temp objects to avoid constraint error
authorDiane Trout <diane@ghic.org>
Wed, 14 Sep 2016 23:03:09 +0000 (16:03 -0700)
committerDiane Trout <diane@ghic.org>
Wed, 14 Sep 2016 23:03:09 +0000 (16:03 -0700)
commite42eb419487c4de02ae1b94417d05aa24abbf6f1
treeacd6144e561dfea1cd4dca1c0b226ba2cfb54df9
parentb94b69b3151404c7f555809e7c8e088bb830a0a3
Delete temp objects to avoid constraint error

Django 1.10 with Postgres 9.? was throwing an error because the
samples_htsuser id that was assigned to an affiliation didn't exist in
the database.

The simplest solution I found was to delete the objects from the ORM,
I don't think they were ever actually created in the db so I'm not sure
how the constraint check was happening.
experiments/test_experiments.py