comocheng / kineticmodelssite

a django site for kinetic models
4 stars 9 forks source link

Thermo objects should be re-used in multiple kinetic models #103

Closed rwest closed 4 years ago

rwest commented 4 years ago

When multiple kinetic models use the same thermodynamic polynomials for the same species (happens a LOT, everyone just copies each other) then they should point to the same Thermo object in the database.

This means each Thermo object may be linked to multiple KineticModel objects.

Currently the ThermoDetail view has kinetic_model = KineticModel.objects.get(thermo=thermo) which suggests it's expecting only one. Probably template needs fixing as well, to cope with a list. I'm not sure what other consequences this will have.