eyp-developers / statistics

The platform to measure European Youth Parliament debates
https://stats.eyp.org
GNU General Public License v3.0
9 stars 2 forks source link

when using running order, all input forms result in an error if the active debate has not been saved at least once #160

Open wolfskaempf opened 7 years ago

wolfskaempf commented 7 years ago
  1. Create Running Order Session
  2. Create Committees
  3. Try to open the submit form of a commitee
wolfskaempf commented 7 years ago

See https://sentry.io/tom-wolfskampf/ga-statistics/issues/263894739/

wolfskaempf commented 7 years ago

I guess the general fix could be to set the first committee, that is created to the active debate. It would still leave an edge case if it is deleted later, but that should be possible to take care of within the model deletion handler.