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

Unschedule delete after ttl #2

Closed
wants to merge 5 commits into from
Closed

Conversation

tom-price
Copy link
Owner

No description provided.

tom-price and others added 4 commits July 1, 2018 00:11
And SessionAuthenticationMiddleware class is removed in 2.0 as it
provided no functionality since session authentication is unconditionally
enabled in Django 1.10.
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
delete takes care of unscheduling
admin uses model.delete instead of model.all.delete
tests updated
@tom-price tom-price force-pushed the unschedule-delete_after_ttl branch from 4c3b3e3 to 12f6a5d Compare July 1, 2018 04:20
@tom-price tom-price closed this Jul 11, 2018
@tom-price tom-price deleted the unschedule-delete_after_ttl branch July 11, 2018 11:54
tom-price pushed a commit that referenced this pull request Sep 17, 2020
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.

2 participants