Ejemplo n.º 1
0
    def __init__(self, document, admin_site, base_url, admin_options):
        AdminAwareDocumentAdmin.__init__(self, document, admin_site)
        self.base_url = base_url
        self.resolver = CMSURLResolver(r'^' + base_url, self.get_urls())

        if admin_options.list_display:
            self.list_display = admin_options.list_display
        if admin_options.list_per_page:
            self.list_per_page = admin_options.list_per_page
Ejemplo n.º 2
0
 def get_resolver(self):
     from dockitcms.common import CMSURLResolver
     urls = self.get_urls()
     return CMSURLResolver(r'^' + self.base_url, urls)