InsaLan / backend-insalan.fr

Backend of the insalan website
MIT License
2 stars 0 forks source link

Missing `tournament` features #31

Open Lymkwi opened 1 year ago

Lymkwi commented 1 year ago

Here are some more advanced features needed for a fully functional tournament module:

ShiroUsagi-san commented 1 year ago

Shall we add a cancellation_deadline in the model or shall we compute it (in the validator of cancellation endpoint)?

Lugrim commented 1 year ago

Shall we add a cancellation_deadline in the model or shall we compute it (in the validator of cancellation endpoint)?

From experience, we should add it to the model (and maybe compute it to a default on tournament creation, but it should be editable, I was asked to change it in the past, there is no reason it couldn't happen again)

Lymkwi commented 1 year ago

Shall we add a cancellation_deadline in the model or shall we compute it (in the validator of cancellation endpoint)?

From experience, we should add it to the model (and maybe compute it to a default on tournament creation, but it should be editable, I was asked to change it in the past, there is no reason it couldn't happen again)

Will be doable because Django lets you use functions for default values

Lymkwi commented 1 year ago

oops