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

  from __future__ import absolute_import
  
- from widgy.site import WidgySite
+ from widgy.site import ReviewedWidgySite
  
  
- class DemoWidgySite(WidgySite):
+ 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
## Code Before:
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

## Instruction:
Enable the review queue on the demo site
## Code After:
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
