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

add None value for cache extension #274

Closed
wants to merge 1 commit into from

Conversation

romanyakovlev
Copy link
Contributor

As Django docs said The fragment is cached forever if timeout is None. However when I set timeout to None get this error:
"cache" tag got a non-integer timeout value: None. So I made a little fix.

Copy link
Collaborator

@auvipy auvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you also add a test to very the change?

@wizpig64
Copy link
Collaborator

It looks like this change is much like the one in django 2.0 from four years ago, that allowed a None timeout:

So this gets approval from me. I contributed a test and added a line in the changelog.

@wizpig64
Copy link
Collaborator

wizpig64 commented Mar 21, 2021

hmm, i thought that doing it that way would have merged [and closed] this PR as well, but maybe it didn't because the merge was done with a rebase. @auvipy could you merge or close this?

@auvipy
Copy link
Collaborator

auvipy commented Mar 22, 2021

the commit is merged

@auvipy auvipy closed this Mar 22, 2021
@wizpig64 wizpig64 mentioned this pull request Apr 17, 2021
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.

None yet

3 participants