Skip to content
Features
Business
Explore
Marketplace
Pricing
This repository
Sign in
or
Sign up
Watch
1
Star
14
Fork
2,102
ojii
/
django-cms
forked from
divio/django-cms
Code
Issues
2
Pull requests
0
Projects
0
Insights
Permalink
Browse files
less queries comment
Loading branch information
...
fivethreeo
committed
Jun 20, 2011
1 parent
f30f623
commit
57fe09a1ebb5b7948d5c0d450ba6b4022c3f3819
Unified
Split
Showing
1 changed file
with
1 addition
and
1 deletion
.
+1
−1
cms/tests/menu.py
Show comments
View
2
cms/tests/menu.py
@@ -721,7 +721,7 @@ def test_show_submenu(self):
db.reset_queries()
tpl
=
Template(
"
{% load menu_tags %}{% show_sub_menu %}
"
)
tpl.render(context)
-
self
.assertEqual(
len
(db.connection.queries),
19
)
+
self
.assertEqual(
len
(db.connection.queries),
19
)
#
five less queries as expected
nodes
=
context[
'
children
'
]
self
.assertEqual(
len
(nodes),
1
)
self
.assertEqual(nodes[
0
].id,
8
)
Toggle all file notes
0 comments on commit
57fe09a
Please
sign in
to comment.
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
Press h to open a hovercard with more details.
0 comments on commit
57fe09a