Only allow one default cluster station or sequencer to be set
authorDiane Trout <diane@caltech.edu>
Wed, 27 Jun 2012 22:53:19 +0000 (15:53 -0700)
committerDiane Trout <diane@caltech.edu>
Wed, 27 Jun 2012 22:53:19 +0000 (15:53 -0700)
commitdd01608a26621a01805f30a9a21872f91e38d4ad
tree08dbaf790151d9efc82af44055ae95b78ef6e2e4
parent1986c5001aef28327bdfaa5c11b57f09387ba5db
Only allow one default cluster station or sequencer to be set

Works by watching for the pre_save signal for those classes
and if it sees that the isdefault flag being set to true it
goes through all the other records and sets isdefault to null.
htsworkflow/frontend/experiments/fixtures/test_flowcells.json
htsworkflow/frontend/experiments/models.py
htsworkflow/frontend/experiments/tests.py