Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (9 sloc) 0.419 kb
from menus.base import Menu
from django.core.exceptions import ValidationError
class CMSAttachMenu(Menu):
cms_enabled = True
name = None
def __init__(self, *args, **kwargs):
super(CMSAttachMenu, self).__init__(*args, **kwargs)
if self.cms_enabled and not
raise ValidationError("the menu %s is a CMSAttachMenu but has no name defined!" % self.__class__.__name__)
Jump to Line
Something went wrong with that request. Please try again.