def __new__(cls, name, bases, attrs):
    attr_meta = attrs.pop('RenderMeta', None)
    new_class = super(PluginModelBase, cls).__new__(cls, name, bases, attrs)
    meta = (attr_meta or getattr(new_class, '_render_meta', None))
    treebeard_view_fields = (f for f in new_class._meta.fields if (f.name in ('depth', 'numchild', 'path')))
    for field in treebeard_view_fields:
        field.editable = False
    new_class._render_meta = BoundRenderMeta(meta)
    return new_class
def __new__(cls, name, bases, attrs):
    attr_meta = attrs.pop('RenderMeta', None)
    new_class = super(PluginModelBase, cls).__new__(cls, name, bases, attrs)
    meta = (attr_meta or getattr(new_class, '_render_meta', None))
    treebeard_view_fields = (f for f in new_class._meta.fields if (f.name in ('depth', 'numchild', 'path')))
    for field in treebeard_view_fields:
        field.editable = False
    new_class._render_meta = BoundRenderMeta(meta)
    return new_class