Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Task.repeat to be any integer in admin interface #268

Closed
wants to merge 1 commit into from

Conversation

schmave
Copy link

@schmave schmave commented Feb 19, 2021

I have repeating tasks that run every minute. As it is now, if I use the Django admin interface to modify that task, it will select Task.HOURLY as the repeat value.

This change removes the choices option so that Task.repeat (and CompletedTask.repeat) can be any integer. I added some help text so that it's still easy to enter a common value:

Screen Shot 2021-02-19 at 2 40 03 PM

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 76.972% when pulling baad0b1 on cmu-cs-academy:remove-choices into e04d44c on arteria:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants