cdh.rest.mixins module

class cdh.rest.mixins.ClientResourceSetupMixin(*args, **kwargs)[source]

Bases: object

This mixin can be used on an AppConfig, in order to populate the REST client registry with that app’s Resource and Collection classes.

By default it will try to import the resources module, but this can be changed by overriding the resource_module class variable.

__init__(*args, **kwargs)[source]
ready()[source]
resource_module = 'resources'