Chunks safe.
[prawokultury.git] / prawokultury / menu_items.py
index 581455c..2174ca0 100644 (file)
@@ -1,11 +1,12 @@
 # -*- coding: utf-8
 # -*- 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 _
 
 
 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')),
     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')),