X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/de60c4eaab116232ff6d1be0ede6bc18fc1c86d8..62c6504a2495e2a1d48f7185ab3adb5984916b1c:/prawokultury/menu_items.py?ds=inline diff --git a/prawokultury/menu_items.py b/prawokultury/menu_items.py index eeb559d..d7fcb42 100644 --- a/prawokultury/menu_items.py +++ b/prawokultury/menu_items.py @@ -1,24 +1,23 @@ -from migdal.models import Entry -from menu.helpers import ObjectMenuItem, MenuItem -from django.core.urlresolvers import reverse_lazy -from django.utils.translation import ugettext_lazy as _ - +# -*- coding: utf-8 -*- +from menu.helpers import ObjectMenuItem ITEMS = [] + def add_entry(**qs): - try: - entry = Entry.objects.get(**qs) - except Entry.DoesNotExist: - return - if not entry.published: - return - ITEMS.append(ObjectMenuItem(entry)) + ITEMS.append(ObjectMenuItem(qs)) + add_entry(slug_pl='co') add_entry(slug_pl='gdzie') +add_entry(pk=25) add_entry(slug_pl='program') -add_entry(slug_pl='media') -ITEMS.append(MenuItem(reverse_lazy('contact_form', args=['register']), _('Take part!'))) +# add_entry(slug_pl='faq') +add_entry(slug_pl='wyszehrad') +# add_entry(slug_pl='wez-udzial') add_entry(slug_pl='materialy') +# add_entry(pk=25) +# add_entry(slug_pl='warsztaty') +add_entry(slug_pl='poprzednie') add_entry(slug_pl='kontakt') +add_entry(slug_pl='faq')