Last active
August 29, 2015 14:02
-
-
Save ir4y/39a9c0cfd4f621982e05 to your computer and use it in GitHub Desktop.
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
def index(request): | |
@cached_as(News.objects.all()) #Что тут написать что бы так же работала инвалидация для Tag ? | |
def _index(): | |
c = {'news':News.objects.all(), | |
'tags':Tag.objects.all()} | |
return render("index.html", c) | |
return _index() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment