X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/0a6e68a5be7d9d7df414a9afcad9982bb783a66e..b64d44fd01d504fbcbf3a180f9e620fed6d527ed:/prawokultury/menu_items.py?ds=inline diff --git a/prawokultury/menu_items.py b/prawokultury/menu_items.py index 581455c..2174ca0 100644 --- a/prawokultury/menu_items.py +++ b/prawokultury/menu_items.py @@ -1,11 +1,12 @@ # -*- coding: utf-8 -from migdal.models import Category, Entry from menu.helpers import ObjectMenuItem, MenuItem, ModelMenuItem from django.core.urlresolvers import reverse_lazy from django.utils.translation import ugettext_lazy as _ -ITEMS = [ +def ITEMS(): + from migdal.models import Category, Entry + return [ ObjectMenuItem(obj_get=lambda: Entry.published_objects.get(slug_pl='o-nas')), ModelMenuItem(Entry, reverse_lazy('migdal_entry_list_publications'), field_lookups={'type': 'publications'}, title=_('Publications')),