dudel icon indicating copy to clipboard operation
dudel copied to clipboard

Feature request: Configurable default due date

Open RalfJung opened this issue 10 years ago • 3 comments

In order to avoid filling the database with huge amounts of outdated, unused polls over time, I think it would make sense to have a non-empty default for the due date, like for example "in 3 months".

If you agree that this would make sense, I'd try to implement this myself and send you a pull request. I'm not yet sure how to deal with the multiple languages though...

RalfJung avatar Mar 22 '15 10:03 RalfJung

Sounds good. How I would implement it:

a) The config setting would be "number of days in the future for default due date" or similar b) Instead of writing "in 3 months" into the form field, you calculate the specific date and set that as the default value for the create-poll form in the GET request, before rendering the form (views.py).

This will also become easier once I publish the new landing page with a simplified create-poll form.

opatut avatar Mar 22 '15 14:03 opatut

In case you are working on a PR, please make sure to rebase onto the new master. You probably should force push the new master onto your fork (or reset the fork entirely).

opatut avatar Mar 28 '15 19:03 opatut

Thanks :) I did not yet start working on this. I may or may not have the time next weekend, in any case I'll mention here when I actually start - so don't let me stop you, in case this is something that would "fall off" something you plan anyway or so ;-)

RalfJung avatar Mar 30 '15 14:03 RalfJung