Esempio n. 1
0
 def get_urls(self):
     urls = super(DistributionListAdmin, self).get_urls()
     return [
         url(r'^import/$',
             self.admin_site.admin_view(
                 DistributionListImport.as_view(model_admin=self)
             ),
             name='distriblists_distriblist_import'),
         url(r'^export/$',
             self.admin_site.admin_view(
                 DistributionListExport.as_view(model_admin=self)
             ),
             name='distriblists_distriblist_export'),
         url(r'^review_members_import/$',
             self.admin_site.admin_view(
                 ReviewMembersImport.as_view(model_admin=self)
             ),
             name='distriblists_reviewmembers_import'),
         url(r'^review_members_export/$',
             self.admin_site.admin_view(
                 ReviewMembersExport.as_view(model_admin=self)
             ),
             name='distriblists_reviewmembers_export'),
     ] + urls
Esempio n. 2
0
 def get_urls(self):
     urls = super(DistributionListAdmin, self).get_urls()
     return [
         url(r'^import/$',
             self.admin_site.admin_view(
                 DistributionListImport.as_view(model_admin=self)
             ),
             name='distriblists_distriblist_import'),
         url(r'^export/$',
             self.admin_site.admin_view(
                 DistributionListExport.as_view(model_admin=self)
             ),
             name='distriblists_distriblist_export'),
         url(r'^review_members_import/$',
             self.admin_site.admin_view(
                 ReviewMembersImport.as_view(model_admin=self)
             ),
             name='distriblists_reviewmembers_import'),
         url(r'^review_members_export/$',
             self.admin_site.admin_view(
                 ReviewMembersExport.as_view(model_admin=self)
             ),
             name='distriblists_reviewmembers_export'),
     ] + urls
Esempio n. 3
0
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf.urls import patterns, url

from distriblists.views import DistributionListImport

urlpatterns = patterns("", url(r"^import/$", DistributionListImport.as_view(), name="distrib_list_import"))
Esempio n. 4
0
# -*- coding: utf-8 -*-


from django.conf.urls import url

from distriblists.views import DistributionListImport

urlpatterns = [

    url(r'^import/$',
        DistributionListImport.as_view(),
        name='distrib_list_import'),
]