hide buttons
[prawokultury.git] / prawokultury / menu_items.py
1 # -*- coding: utf-8 -*-
2 from migdal.models import Entry
3 from menu.helpers import ObjectMenuItem
4
5 ITEMS = []
6
7
8 def add_entry(**qs):
9     try:
10         entry = Entry.objects.get(**qs)
11     except Entry.DoesNotExist:
12         return
13     if not entry.published:
14         return
15     ITEMS.append(ObjectMenuItem(entry))
16
17 add_entry(slug_pl='co')
18 add_entry(slug_pl='gdzie')
19 add_entry(pk=25)
20 add_entry(slug_pl='program')
21 # add_entry(slug_pl='faq')
22 add_entry(slug_pl='wyszehrad')
23 # add_entry(slug_pl='wez-udzial')
24 add_entry(slug_pl='materialy')
25 # add_entry(pk=25)
26 # add_entry(slug_pl='warsztaty')
27 add_entry(slug_pl='poprzednie')
28 add_entry(slug_pl='kontakt')
29 add_entry(slug_pl='faq')