update menu
[prawokultury.git] / prawokultury / menu_items.py
1 # -*- coding: utf-8
2 from migdal.models import Category, Entry
3 from menu.helpers import ObjectMenuItem, MenuItem, ModelMenuItem
4 from django.core.urlresolvers import reverse_lazy
5 from django.utils.translation import ugettext_lazy as _
6
7
8 ITEMS = [
9     ObjectMenuItem(obj_get=lambda: Entry.published_objects.get(slug_pl='o-nas')),
10     ModelMenuItem(Entry, reverse_lazy('migdal_entry_list_publications'),
11                   field_lookups={'type': 'publications'}, title=_('Publications')),
12     MenuItem(reverse_lazy('events'), _('Events'), langs=['en']),
13     MenuItem('/kurs/', u'Kurs dla uczelni', langs=['pl']),
14     ObjectMenuItem(
15         obj_get=lambda: Category.objects.get(slug_pl='stanowisko'),
16         rev_lookups={Entry: 'categories'},
17         title=_('Positions')),
18     MenuItem(
19         reverse_lazy('questions'), _('First aid')),
20     ObjectMenuItem(
21         obj_get=lambda: Entry.published_objects.get(slug_pl='pierwsza-pomoc'),
22         title=_('Guide')),
23 ]