Tivix / django-cron

Write cron business logic as a Python class and let this app do the rest! It enables Django projects to schedule cron tasks, tracks their success / failures, manages contention (via a cache) etc. Basically takes care of all the boring work for you :-)
www.tivix.com
MIT License
900 stars 193 forks source link

Enabling Duration Sorting in Admin #142

Closed msopko81 closed 2 years ago

msopko81 commented 6 years ago

Annotates duration to the queryset that can be used for ordering within the admin. Will close issue #86. Further improvements can probably be made to use this field for the DurationFilter class, but this is just a simple change to allowing ordering.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.8%) to 90.417% when pulling 446fee9bed01be85b2a0275ae27bf368c780173d on msopko81:86-admin-sort-duration into 7fa5c2d2835520d8c920f3c103937ab292d9e545 on Tivix:master.