Clonable

class djmvc.clonable.Clonable[source]

Bases: object

Mixin for declaring specialized subclasses at runtime.

Controllers and views use clone() to override attributes without defining a new module-level class.

classmethod clone(*mixins, **attributes)[source]

Return a subclass with the given attributes.

If a model is found, it will prefix the class name with the model.