mirror of
https://github.com/django/django.git
synced 2025-11-02 21:03:53 +00:00
Corrected regressions introduced in r11586 and r11593
I read the order of arguments in the docs incorrectly, doh! git-svn-id: http://code.djangoproject.com/svn/django/trunk@11594 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d6c2286712
commit
a97648a7e0
2 changed files with 11 additions and 7 deletions
|
|
@ -105,7 +105,7 @@ class DecoratorsTest(TestCase):
|
|||
"""
|
||||
def my_view(request):
|
||||
return "response"
|
||||
my_view_cached = cache_page(123, my_view)
|
||||
my_view_cached = cache_page(my_view, 123)
|
||||
self.assertEqual(my_view_cached(HttpRequest()), "response")
|
||||
|
||||
class MethodDecoratorAdapterTests(TestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue