-
Notifications
You must be signed in to change notification settings - Fork 189
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
Error 500 on sorting by duration time on admin panel #86
Comments
It was easier to remove sorting ability at this column rather than fix it (because it's not so useful opportunity).
This is clearly a bug, thank you for bringing it to our attention @dorianamouroux . I think we should fix instead of just removing ability to sort @ihoru. This is useful feature when it works! |
I looked a little bit into it, the simplest way would be to create a duration field and store it, otherwise, you can't make it sortable, because the value has to come from the database. I tried to use If we create the duration value when we save the model, it wouldn't work for the existing cron log entries, we can create a management command to migrate those. I can do it and send a PR if you think that's good |
@dorianamouroux I think that's a good idea and could be useful elsewhere. Go ahead with it and I'll review the PR. Thanks! |
Hi,
I'm using Django_cron and I want to know what are the longest duration time of my tasks. On the admin panel, I want to sort by duration time and when I do, I got a 500 errors as below :
I'm using Django 1.8
Thank you very much
The text was updated successfully, but these errors were encountered: