Revision 06c456e2 cloudcmsblog/models.py

b/cloudcmsblog/models.py
80 80
        trans = translations.TranslatedObjectMixin.__unicode__(self)
81 81
        return trans or _('Unnamed category')
82 82

  
83

  
84 83
class CategoryTranslation(translations.Translation(Category)):
85 84
    """
86 85
    Category translation
......
188 187
    def back_url(self):
189 188
        return get_blog_page().get_navigation_url()
190 189

  
191

  
192 190
# Feincms navigation extension
193 191
class BlogCategoriesNavigationExtension(NavigationExtension):
194 192
    """
......
207 205
                url=url,
208 206
                lft=0,
209 207
                rght=0,
210
                level=page.level,
208
                level=page.level + 1, # blog categories are nested, assign correct level
211 209
                slug=category.translation.slug,
212 210
            )
213 211

  

Also available in: Unified diff