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 _
10 ITEMS.append(ObjectMenuItem(
11 obj_get=lambda:Entry.published_objects.get(slug_pl='o-nas')
14 ITEMS.append(ModelMenuItem(Entry, reverse_lazy('migdal_entry_list_publications'),
15 field_lookups={'type': 'publications'}, title=_('Publications')))
17 ITEMS.append(MenuItem(reverse_lazy('events'), _('Events'),
18 more_urls=(reverse_lazy('events_past'),)))
20 ITEMS.append(ObjectMenuItem(
21 obj_get=lambda:Category.objects.get(slug_pl='stanowisko'),
22 rev_lookups={Entry: 'categories'},
26 ITEMS.append(ObjectMenuItem(
27 obj_get=lambda:Entry.published_objects.get(slug_pl='pierwsza-pomoc'),
28 title=_('First aid in copyright')