- try:
- items = Document.objects.filter(folder__exact=folder, \
- islive__exact=True, slug__exact='index')
- for item in items:
- menu_items.append(
- {
- 'title': item.title,
- 'url': folder.get_basic_url(),
- }
- )
- except:
- pass
+ items = Document.objects.filter(folder__exact=folder, \
+ islive__exact=True, slug__exact='index')
+ for item in items:
+ menu_items.append(
+ {
+ 'title': item.title,
+ 'url': folder.get_absolute_url(),
+ }
+ )