1 from migdal.models import Entry
2 from menu.helpers import ObjectMenuItem, MenuItem
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='co')
19 add_entry(slug_pl='gdzie')
20 add_entry(slug_pl='program')
21 add_entry(slug_pl='media')
22 ITEMS.append(MenuItem(reverse_lazy('contact_form', args=['register']), _('Take part!')))
23 add_entry(slug_pl='materialy')
24 add_entry(slug_pl='kontakt')