-
Notifications
You must be signed in to change notification settings - Fork 70
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
get_tabs is caching with server start #4
Comments
my solution
|
Hi Kamil, Thanks a million for your feedback on this issue. I have just added some test against your specific code and it passes successfully (see above & travis). I understand you mention some caching but then your solution should not pass as well? Maybe its something to do with the self.tabs. The strange thing is that there should be no caching in django admin and there is no cache implemented in this app. Out of curiosity, what is the django version you are using? Thanks again! |
I'm sorry it wasn't caching it was static -> instance variable transformation in admin, once someone opened admin change view with modified tabs self.tabs was changed for everyone else. Here's my project and now it works ok https://github.com/kamilgregorczyk/sententia/blob/master/poll/admin.py#L108 Someday I'm gonna make it more pretty, someday. django 1.9.9 |
So I'm changing tabs dynamically like so:
and when i run server and go to change view of my model it's cached with these three tabs for all users, it's omitting my base tabs config even if the condition is false
The text was updated successfully, but these errors were encountered: