1 from migdal.models import Category, Entry
2 from menu.helpers import ObjectMenuItem, MenuItem, ModelMenuItem
3 from django.core.urlresolvers import reverse_lazy
4 from django.utils.translation import ugettext_lazy as _
11 entry = Entry.objects.get(**qs)
12 except Entry.DoesNotExist:
14 if not entry.published:
16 ITEMS.append(ObjectMenuItem(entry))
18 add_entry(slug_pl='o-nas')
20 ITEMS.append(ModelMenuItem(Entry, reverse_lazy('migdal_entry_list_publications'),
21 field_lookups={'type': 'publications'}, title=_('Publications')))
23 ITEMS.append(MenuItem(reverse_lazy('events'), _('Events'),
24 more_urls=(reverse_lazy('events_past'),)))
26 ITEMS.append(ObjectMenuItem(Category.objects.get(slug_pl='stanowisko'),
27 rev_lookups={Entry: 'categories'}, title=_('Positions')))
28 #CategoryMenuItem(Category.objects.get(slug_pl='stanowisko'),
29 # title=_('Positions')),