forked from islco/django-rq-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete takes care of unscheduling (islco#23)
* MIDDLEWARE_CLASSES was renamed to MIDDLEWARE due to change after 1.10 And SessionAuthenticationMiddleware class is removed in 2.0 as it provided no functionality since session authentication is unconditionally enabled in Django 1.10. * Tweaked tests as several failed in python3.x. In python2.x d.keys() returned a list. With python3.x, d.keys() returns a dict_keys object which behaves a lot more like a set than a list. As such, it can't be indexed. Changing d.keys() to list(d)) will return a list of keys on both python2.x and python3.x without making any copies. reference: https://stackoverflow.com/questions/17322668/typeerror-dict-keys-object-does-not-support-indexing * version bump delete takes care of unscheduling admin uses model.delete instead of model.all.delete tests updated * revert changes made to queue field in model (moved back queue choices to admin form)
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters