Maps django model admin entries to model resources.
Usage:
from hyperadmin.resources.models.autload import DjangoCTModelAdminLoader
from django.contrib.admin import site as admin_site
from hyperadmin import site as root_endpoint
loader = DjangoCTModelAdminLoader(root_endpoint, admin_site)
loader.register_resources()
A helper class that maps admin entries from a django.contrib.admin.site.AdminSite object to a RootEndpoint
When supplied a subclass of ModelAdmin Returns a ModelResource class with the following options mapped:
When supplied a subclass of InlineModelAdmin Returns an InlineModelResource with the following options mapped:
Bases: hyperadmin.resources.models.autoload.DjangoModelAdminLoader
Extends DjangoModelAdminLoader to provide support for autloading generic inlines
When supplied a subclass of GenericInlineModelAdmin Returns a GenericInlineModelResource with the following options mapped: