Esempio n. 1
0
 def get_urls(self):
     """
     Returns the additional urls used by the custom object tools.
     """
     customer_urls = [
         url(r"^([^/]+)/manage_learners$",
             self.admin_site.admin_view(
                 EnterpriseCustomerManageLearnersView.as_view()),
             name=UrlNames.MANAGE_LEARNERS)
     ]
     return customer_urls + super(EnterpriseCustomerAdmin, self).get_urls()
Esempio n. 2
0
 def get_urls(self):
     """
     Returns the additional urls used by the custom object tools.
     """
     customer_urls = [
         url(r"^([^/]+)/manage_learners$",
             self.admin_site.admin_view(
                 EnterpriseCustomerManageLearnersView.as_view()),
             name=UrlNames.MANAGE_LEARNERS),
         url(r"^([^/]+)/transmit_courses_metadata",
             self.admin_site.admin_view(
                 EnterpriseCustomerTransmitCoursesView.as_view()),
             name=UrlNames.TRANSMIT_COURSES_METADATA)
     ]
     return customer_urls + super(EnterpriseCustomerAdmin, self).get_urls()