from ckan.lib import base
from ckan import logic
from ckan.plugins import toolkit

get_action = logic.get_action
NotFound = logic.NotFound
NotAuthorized = logic.NotAuthorized

redirect = base.redirect
abort = base.abort
BaseController = base.BaseController


class AdminController(BaseController):

    def email(self):
        '''Email template admin tab.

        :param :
        :type

        '''
        return toolkit.render('admin/email.html')

    def requests_data(self):
        '''
        Return all of the data requests in admin panel

        :return:
        '''

        return toolkit.render('admin/all_requests_data.html')
from ckan.lib import base
from ckan import logic
from ckan.plugins import toolkit
from ckan.controllers.admin import AdminController

get_action = logic.get_action
NotFound = logic.NotFound
NotAuthorized = logic.NotAuthorized

redirect = base.redirect
abort = base.abort
BaseController = base.BaseController


class AdminController(AdminController):

    def email(self):
        '''Email template admin tab.

        :param :
        :type

        '''
        return toolkit.render('admin/email.html')

    def requests_data(self):
        '''
        Return all of the data requests in admin panel

        :return:
        '''

        return toolkit.render('admin/all_requests_data.html')
Extend Admin instead of Base controller
Extend Admin instead of Base controller
