dudel
dudel copied to clipboard
Feature request: Configurable default due date
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...
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.
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).
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 ;-)