from __future__ import absolute_import

from widgy.site import WidgySite


class DemoWidgySite(WidgySite):
    def valid_parent_of(self, parent, child_class, obj=None):
        if isinstance(parent, I18NLayout):
            return True
        else:
            return super(DemoWidgySite, self).valid_parent_of(parent, child_class, obj)

widgy_site = DemoWidgySite()

from widgy.contrib.widgy_i18n.models import I18NLayout

from __future__ import absolute_import

from widgy.site import ReviewedWidgySite


class DemoWidgySite(ReviewedWidgySite):
    def valid_parent_of(self, parent, child_class, obj=None):
        if isinstance(parent, I18NLayout):
            return True
        else:
            return super(DemoWidgySite, self).valid_parent_of(parent, child_class, obj)

widgy_site = DemoWidgySite()

from widgy.contrib.widgy_i18n.models import I18NLayout

Enable the review queue on the demo site
Enable the review queue on the demo site
