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 _
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']),
15 obj_get=lambda: Category.objects.get(slug_pl='stanowisko'),
16 rev_lookups={Entry: 'categories'},
17 title=_('Positions')),
19 reverse_lazy('questions'), _('First aid')),
21 obj_get=lambda: Entry.published_objects.get(slug_pl='pierwsza-pomoc'),