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
Fixed #32493 -- Removed redundant never_cache uses from admin views. #14066
Conversation
54fdd68
to
feb34cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, this seems reasonable to me.
- Coverage is provided by
admin_views.tests.NeverCacheTests
logout
inheritsnever_cache
fromdjango.contrib.auth.views.LogoutView
I don't think it's supported usage to directly access the index
or logout
views, but I added a small release note for the behaviour change.
@carltongibson Thanks for the review :) I didn't think about accessing these methods directly, but agree with everything you've said. Shouldn't the release note only mention |
39298b5
to
937756c
Compare
Hey @tim-mccurrach — yes, that's a good point. I've adjusted the release note accordingly, squashed, rebased and used the project commit message format. @felixxm Can I leave this here for you to glance at, in case you have a concern. (As we discussed I don't think there's an issue — if you're overriding, say, |
It's just occurred to me that |
@tim-mccurrach I'd leave that one. That |
Yes, that's a good point. Thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks both 👍
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
937756c
to
2c07e6e
Compare
Decorating
logout
andindex
withnever_cache
is not needed, sinceadmin_view
already appliesnever_cache
.https://code.djangoproject.com/ticket/32493#ticket