Only allow one default cluster station or sequencer to be set
authorDiane Trout <diane@caltech.edu>
Wed, 27 Jun 2012 22:56:37 +0000 (15:56 -0700)
committerDiane Trout <diane@caltech.edu>
Wed, 27 Jun 2012 22:56:37 +0000 (15:56 -0700)
commiteff287e0df7a104a140e3e04cb636219ad01f50b
tree4a2c4fb4f3712c2fceb9c25d3c918f8727917d7d
parentdd01608a26621a01805f30a9a21872f91e38d4ad
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/models.py