projects
/
cascardo
/
ema.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4db04c5
)
fixing a ridiculous bug =/
author
Lincoln de Sousa
<lincoln@alfaiati.net>
Wed, 8 Oct 2008 18:56:02 +0000
(15:56 -0300)
committer
Lincoln de Sousa
<lincoln@alfaiati.net>
Wed, 8 Oct 2008 18:56:02 +0000
(15:56 -0300)
urls.py
patch
|
blob
|
history
diff --git
a/urls.py
b/urls.py
index
03c46cd
..
3a46f2d
100644
(file)
--- a/
urls.py
+++ b/
urls.py
@@
-28,11
+28,11
@@
MEDIA = {'document_root': settings.INSTANCE('media')}
# full version contains all entries and the other has just entries
# without menus.
# full version contains all entries and the other has just entries
# without menus.
-hasmenu
orindex
= [x.entry.id for x in Menu.objects.all()]
-hasmenuorindex.extend([x.entry.id for x in Index.objects.all()])
+hasmenu = [x.entry.id for x in Menu.objects.all()]
+inindex = [x.entry.id for x in Index.objects.all()]
info_dict = {
info_dict = {
- 'queryset': Entry.published_on_site.exclude(id__in=hasmenu
or
index),
+ 'queryset': Entry.published_on_site.exclude(id__in=hasmenu
).filter(id__in=in
index),
'template_object_name': 'entry',
'extra_context': {'menus': Menu.objects.all()},
}
'template_object_name': 'entry',
'extra_context': {'menus': Menu.objects.all()},
}