def get_urls(self): return [ admin_url( "^importer/imports/$", "shuup.importer.admin_module.import_views.ImportListView", name="importer.import" ), admin_url( r"^importer/imports/(?P<pk>.+)/$", "shuup.importer.admin_module.import_views.ImportDetailView", name="importer.import.detail", ), admin_url( "^importer/new/$", "shuup.importer.admin_module.import_views.ImportView", name="importer.import.new", ), admin_url( "^importer/process$", "shuup.importer.admin_module.import_views.ImportProcessView", name="importer.import_process", ), admin_url( "^importer/example$", "shuup.importer.admin_module.import_views.ExampleFileDownloadView", name="importer.download_example", ), ]
def get_urls(self): return [ admin_url( "^adjust-stock/(?P<supplier_id>\d+)/(?P<product_id>\d+)/", "shuup.simple_supplier.admin_module.views.process_stock_adjustment", name="simple_supplier.stocks" ), admin_url( "^alert-limit/(?P<supplier_id>\d+)/(?P<product_id>\d+)/", "shuup.simple_supplier.admin_module.views.process_alert_limit", name="simple_supplier.alert_limits" ), admin_url( "^manage-stock/(?P<supplier_id>\d+)/(?P<product_id>\d+)/", "shuup.simple_supplier.admin_module.views.process_stock_managed", name="simple_supplier.stock_managed" ), admin_url( "^stocks/", "shuup.simple_supplier.admin_module.views.StocksListView", name="simple_supplier.stocks" ), admin_url( "^list-settings/", "shuup.admin.modules.settings.views.ListSettingsView", name="simple_supplier.list_settings" ) ]
def get_urls(self): return [ admin_url( "^contacts/new/$", "shuup.admin.modules.contacts.views.ContactEditView", kwargs={"pk": None}, name="contact.new", permissions=["shuup.add_contact"], ), admin_url( "^contacts/(?P<pk>\d+)/edit/$", "shuup.admin.modules.contacts.views.ContactEditView", name="contact.edit", permissions=["shuup.change_contact"], ), admin_url( "^contacts/(?P<pk>\d+)/$", "shuup.admin.modules.contacts.views.ContactDetailView", name="contact.detail", permissions=get_default_model_permissions(Contact), ), admin_url( "^contacts/reset-password/(?P<pk>\d+)/$", "shuup.admin.modules.contacts.views.ContactResetPasswordView", name="contact.reset_password", permissions=get_default_model_permissions(Contact), ), admin_url( "^contacts/$", "shuup.admin.modules.contacts.views.ContactListView", name="contact.list", permissions=get_default_model_permissions(Contact), ), ]
def get_urls(self): permissions = get_default_model_permissions(NotificationModel) return [ admin_url( "notify/script-item-editor/", "shuup.notify.admin_module.views.script_item_editor", name="notify.script-item-editor", permissions=permissions ), admin_url( "notify/script/content/(?P<pk>\d+)/", "shuup.notify.admin_module.views.EditScriptContentView", name="notify.script.edit-content", permissions=permissions ), admin_url( "notify/mark-read/(?P<pk>\d+)/$", self.mark_notification_read_view, name="notify.mark-read", permissions=permissions ), ] + get_edit_and_list_urls( url_prefix="^notify/script", view_template="shuup.notify.admin_module.views.Script%sView", name_template="notify.script.%s", permissions=permissions )
def get_urls(self): return [ admin_url( "^products/(?P<pk>\d+)/delete/$", "shuup.admin.modules.products.views.ProductDeleteView", name="product.delete", permissions=["shuup.delete_product"] ), admin_url( "^products/(?P<pk>\d+)/media/$", "shuup.admin.modules.products.views.ProductMediaEditView", name="product.edit_media", permissions=get_default_model_permissions(Product), ), admin_url( "^products/(?P<pk>\d+)/crosssell/$", "shuup.admin.modules.products.views.ProductCrossSellEditView", name="product.edit_cross_sell", permissions=get_default_model_permissions(ProductCrossSell), ), admin_url( "^products/(?P<pk>\d+)/variation/$", "shuup.admin.modules.products.views.ProductVariationView", name="product.edit_variation", permissions=get_default_model_permissions(ProductVariationResult), ), admin_url( "^products/(?P<pk>\d+)/package/$", "shuup.admin.modules.products.views.ProductPackageView", name="product.edit_package", permissions=get_default_model_permissions(ProductPackageLink) ) ] + get_edit_and_list_urls( url_prefix="^products", view_template="shuup.admin.modules.products.views.Product%sView", name_template="product.%s", permissions=get_default_model_permissions(Product) )
def get_urls(self): return [ admin_url( r"^menu/your/$", "shuup.admin.modules.menu.views.arrange.AdminMenuArrangeView", name="menu.arrange" ), admin_url(r"^menu/reset/$", "shuup.admin.modules.menu.views.arrange.AdminMenuResetView", name="menu.reset"), ]
def get_urls(): urls = [] urls.extend(get_module_urls()) urls.extend([ admin_url(r'^$', DashboardView.as_view(), name='dashboard'), admin_url(r'^home/$', HomeView.as_view(), name='home'), admin_url(r'^wizard/$', WizardView.as_view(), name='wizard'), admin_url(r'^tour/$', TourView.as_view(), name='tour'), admin_url(r'^search/$', SearchView.as_view(), name='search'), admin_url(r'^select/$', MultiselectAjaxView.as_view(), name='select'), admin_url(r'^menu/$', MenuView.as_view(), name='menu'), admin_url(r'^login/$', login, kwargs={"template_name": "shuup/admin/auth/login.jinja"}, name='login', require_authentication=False), admin_url(r'^logout/$', auth_views.logout, kwargs={"template_name": "shuup/admin/auth/logout.jinja"}, name='logout', require_authentication=False), admin_url(r'^set-language/$', csrf_exempt(set_language), name="set-language"), ]) for u in urls: # pragma: no cover if not isinstance(u, AdminRegexURLPattern): warnings.warn("Admin URL %r is not an AdminRegexURLPattern" % u) # Add Django javascript catalog url urls.append(url(r'^i18n.js$', javascript_catalog_all, name='js-catalog')) return tuple(urls)
def get_urls(self): return [ admin_url( "^addons/$", "shuup.addons.admin_module.views.AddonListView", name="addon.list", permissions=get_default_model_permissions(Shop) ), admin_url( "^addons/add/$", "shuup.addons.admin_module.views.AddonUploadView", name="addon.upload", permissions=get_default_model_permissions(Shop) ), admin_url( "^addons/add/confirm/$", "shuup.addons.admin_module.views.AddonUploadConfirmView", name="addon.upload_confirm", permissions=get_default_model_permissions(Shop) ), admin_url( "^addons/reload/$", "shuup.addons.admin_module.views.ReloadView", name="addon.reload", permissions=get_default_model_permissions(Shop) ), ]
def get_urls(self): return [ admin_url("^products/(?P<pk>\d+)/delete/$", "shuup.admin.modules.products.views.ProductDeleteView", name="product.delete", permissions=["shuup.delete_product"]), admin_url( "^products/(?P<pk>\d+)/media/$", "shuup.admin.modules.products.views.ProductMediaEditView", name="product.edit_media", permissions=get_default_model_permissions(Product), ), admin_url( "^products/(?P<pk>\d+)/crosssell/$", "shuup.admin.modules.products.views.ProductCrossSellEditView", name="product.edit_cross_sell", permissions=get_default_model_permissions(ProductCrossSell), ), admin_url( "^products/(?P<pk>\d+)/variation/$", "shuup.admin.modules.products.views.ProductVariationView", name="product.edit_variation", permissions=get_default_model_permissions( ProductVariationResult), ), admin_url( "^products/(?P<pk>\d+)/package/$", "shuup.admin.modules.products.views.ProductPackageView", name="product.edit_package", permissions=get_default_model_permissions(ProductPackageLink)) ] + get_edit_and_list_urls( url_prefix="^products", view_template="shuup.admin.modules.products.views.Product%sView", name_template="product.%s", permissions=get_default_model_permissions(Product))
def get_urls(self): return [ admin_url( "^adjust-stock/(?P<supplier_id>\d+)/(?P<product_id>\d+)/", "shuup.simple_supplier.admin_module.views.process_stock_adjustment", name="simple_supplier.stocks", permissions=get_default_model_permissions(StockAdjustment) ), admin_url( "^alert-limit/(?P<supplier_id>\d+)/(?P<product_id>\d+)/", "shuup.simple_supplier.admin_module.views.process_alert_limit", name="simple_supplier.alert_limits", permissions=get_default_model_permissions(StockAdjustment) ), admin_url( "^stocks/", "shuup.simple_supplier.admin_module.views.StocksListView", name="simple_supplier.stocks" ), admin_url( "^list-settings/", "shuup.admin.modules.settings.views.ListSettingsView", name="simple_supplier.list_settings", permissions=get_default_model_permissions(StockAdjustment), ) ]
def get_urls(self): return [ admin_url("^media/$", "shuup.admin.modules.media.views.MediaBrowserView", name="media.browse"), admin_url("^media/upload/$", "shuup.admin.modules.media.views.media_upload", name="media.upload") ]
def get_urls(self): return [ admin_url(r"^carts/$", "shuup.front.admin_module.carts.views.CartListView", name="cart.list"), admin_url(r"^carts/(?P<pk>\d+)/$", "shuup.front.admin_module.carts.views.CartDetailView", name="cart.detail"), ]
def get_urls(self): return [ admin_url( r"^product_reviews/$", "shuup_product_reviews.admin_module.views.ProductReviewListView", name="product_reviews.list"), admin_url(r"^product_reviews/list-settings/", "shuup.admin.modules.settings.views.ListSettingsView", name="product_reviews.list_settings") ]
def get_urls(self): return [ admin_url( r"^vendor_reviews/$", "shuup_vendor_reviews.admin_module.views.VendorReviewListView", name="vendor_reviews.list"), admin_url(r"^vendor_reviews/list-settings/", "shuup.admin.modules.settings.views.ListSettingsView", name="vendor_reviews.list_settings") ]
def get_urls(self): return [ admin_url("^users/(?P<pk>\d+)/change-password/$", "shuup.admin.modules.users.views.UserChangePasswordView", name="user.change-password"), admin_url("^users/(?P<pk>\d+)/reset-password/$", "shuup.admin.modules.users.views.UserResetPasswordView", name="user.reset-password"), admin_url( "^users/(?P<pk>\d+)/change-permissions/$", "shuup.admin.modules.users.views.UserChangePermissionsView", name="user.change-permissions"), admin_url("^users/(?P<pk>\d+)/$", "shuup.admin.modules.users.views.UserDetailView", name="user.detail"), admin_url("^users/new/$", "shuup.admin.modules.users.views.UserDetailView", kwargs={"pk": None}, name="user.new"), admin_url("^users/$", "shuup.admin.modules.users.views.UserListView", name="user.list"), admin_url("^users/(?P<pk>\d+)/login/$", "shuup.admin.modules.users.views.LoginAsUserView", name="user.login-as"), admin_url("^users/(?P<pk>\d+)/login/staff/$", "shuup.admin.modules.users.views.LoginAsStaffUserView", name="user.login-as-staff"), admin_url("^contacts/list-settings/", "shuup.admin.modules.settings.views.ListSettingsView", name="user.list_settings") ]
def get_urls(self): return [ admin_url( "^printouts/delivery/(?P<shipment_pk>\d+)/$", "shuup.order_printouts.admin_module.views.get_delivery_pdf", name="printouts.delivery_pdf"), admin_url( "^printouts/confirmation/(?P<order_pk>\d+)/$", "shuup.order_printouts.admin_module.views.get_confirmation_pdf", name="printouts.confirmation_pdf"), ]
def get_urls(self): return [ admin_url( r"^menu/supplier/$", "shuup.admin.modules.menu.views.arrange.SupplierMenuArrangeView", name="menu.arrange_supplier"), admin_url( r"^menu/reset/supplier/$", "shuup.admin.modules.menu.views.arrange.SupplierMenuResetView", name="menu.reset_supplier") ]
def get_urls(self): return [ admin_url("^addons/$", "shuup.addons.admin_module.views.AddonListView", name="addon.list"), admin_url("^addons/add/$", "shuup.addons.admin_module.views.AddonUploadView", name="addon.upload"), admin_url( "^addons/add/confirm/$", "shuup.addons.admin_module.views.AddonUploadConfirmView", name="addon.upload_confirm", ), admin_url("^addons/reload/$", "shuup.addons.admin_module.views.ReloadView", name="addon.reload"), ]
def get_urls(self): return [ admin_url( r"^categories/organize/$", "shuup_category_organizer.admin_module.views.CategoryOrganizeView", name="category.organize"), admin_url( r"^categories/(?P<pk>\d+)/duplicate/$", "shuup_category_organizer.admin_module.views.CategoryDuplicateView", name="category.duplicate") ]
def get_urls(self): return [ admin_url(r"^shops/(?P<pk>\d+)/enable/$", "shuup.admin.modules.shops.views.ShopEnablerView", name="shop.enable"), admin_url(r"^shops/(?P<pk>\d+)/select/$", "shuup.admin.modules.shops.views.ShopSelectView", name="shop.select"), ] + get_edit_and_list_urls( url_prefix="^shops", view_template="shuup.admin.modules.shops.views.Shop%sView", name_template="shop.%s")
def get_urls(self): # doccov: ignore return [ admin_url("^xtheme/guide/(?P<theme_identifier>.+?)/", "shuup.xtheme.admin_module.views.ThemeGuideTemplateView", name="xtheme.guide"), admin_url("^xtheme/configure/(?P<theme_identifier>.+?)/", "shuup.xtheme.admin_module.views.ThemeConfigDetailView", name="xtheme.config_detail"), admin_url("^xtheme/theme", "shuup.xtheme.admin_module.views.ThemeConfigView", name="xtheme.config") ]
def get_urls(self): return [ admin_url("^importer/import$", "shuup.importer.admin_module.import_views.ImportView", name="importer.import", permissions=get_default_model_permissions(Shop)), admin_url( "^importer/import/process$", "shuup.importer.admin_module.import_views.ImportProcessView", name="importer.import_process", permissions=get_default_model_permissions(Shop)), ]
def get_urls(self): return [ admin_url("^gdpr/$", "shuup.gdpr.admin_module.views.GDPRView", name="gdpr.settings"), admin_url("^gdpr/contact/(?P<pk>\d+)/anonymize/$", "shuup.gdpr.admin_module.views.GDPRAnonymizeView", name="gdpr.anonymize"), admin_url("^gdpr/contact/(?P<pk>\d+)/download/$", "shuup.gdpr.admin_module.views.GDPRDownloadDataView", name="gdpr.download_data") ]
def get_urls(self): return [ admin_url( r"^product_reviews/$", "shuup_product_reviews.admin_module.views.ProductReviewListView", name="product_reviews.list", permissions=get_default_model_permissions(ProductReview)), admin_url(r"^product_reviews/list-settings/", "shuup.admin.modules.settings.views.ListSettingsView", name="product_reviews.list_settings", permissions=get_default_model_permissions(ProductReview)) ]
def get_urls(self): return [ admin_url( "^adjust-stock/(?P<supplier_id>\d+)/(?P<product_id>\d+)/", "shuup.simple_supplier.admin_module.views.process_stock_adjustment", name="simple_supplier.stocks", permissions=get_default_model_permissions(StockAdjustment)), admin_url( "^stocks/", "shuup.simple_supplier.admin_module.views.StocksListView", name="simple_supplier.stocks"), ]
def get_urls(self): return [ admin_url("^importer/import$", "shuup.importer.admin_module.import_views.ImportView", name="importer.import", permissions=["shuup.change_shop"]), admin_url( "^importer/import/process$", "shuup.importer.admin_module.import_views.ImportProcessView", name="importer.import_process", permissions=["shuup.change_shop"]), ]
def get_urls(self): return get_edit_and_list_urls( url_prefix="^tasks", view_template="shuup.tasks.admin_module.views.Task%sView", name_template="task.%s") + [ admin_url(r"^tasks/(?P<pk>\d+)/delete/$", "shuup.tasks.admin_module.views.TaskDeleteView", name="task.delete"), admin_url(r"^tasks/(?P<pk>\d+)/set_status/$", "shuup.tasks.admin_module.views.TaskSetStatusView", name="task.set_status"), ]
def get_urls(self): # doccov: ignore return [ admin_url( "^xtheme/(?P<theme_identifier>.+?)/", "shuup.xtheme.admin_module.views.ThemeConfigDetailView", name="xtheme.config_detail", permissions=get_default_model_permissions(ThemeSettings)), admin_url("^xtheme/", "shuup.xtheme.admin_module.views.ThemeConfigView", name="xtheme.config", permissions=get_default_model_permissions(ThemeSettings)) ]
def get_urls(self): urls = super(ShippingRegionModule, self).get_urls() urls = urls + [ admin_url("%s/import/$" % self.url_prefix, self.view_template % "Import", name=self.name_template % "import", permissions=self.get_required_permissions()), admin_url("%s/export/$" % self.url_prefix, self.view_template % "Export", name=self.name_template % "export", permissions=self.get_required_permissions()) ] return urls
def get_urls(self): return [ admin_url( r"^menu/staff/$", "shuup.admin.modules.menu.views.arrange.StaffMenuArrangeView", name="menu.arrange_staff", ), admin_url( r"^menu/reset/staff/$", "shuup.admin.modules.menu.views.arrange.StaffMenuResetView", name="menu.reset_staff", ), ]
def get_urls(self): return [ admin_url( "^printouts/delivery/(?P<shipment_pk>\d+)/$", "shuup.order_printouts.admin_module.views.get_delivery_pdf", name="printouts.delivery_pdf" ), admin_url( "^printouts/confirmation/(?P<order_pk>\d+)/$", "shuup.order_printouts.admin_module.views.get_confirmation_pdf", name="printouts.confirmation_pdf" ), ]
def get_urls(self): return [ admin_url( "^pagseguro/payment/refresh/$", "shuup_pagseguro.admin.views.PaymentRefreshView", name="pagseguro.payment_refresh" ), admin_url( "^pagseguro/$", "shuup_pagseguro.admin.views.DashboardView", name="pagseguro.dashboard" ), ]
def get_urls(self): return [ admin_url( "test/$", OkAction, name="test-auth", require_authentication=True), admin_url( "test2/$", "shuup_tests.admin.fixtures.test_module.OkAction", name="test-unauth", require_authentication=False), admin_url( "test3/$", "shuup_tests.admin.fixtures.test_module.OkAction", name="test-perm", require_authentication=True, permissions=("bogus-permission",)), ]
def get_urls(self): return [ admin_url( r"^categories/organize/$", "shuup_category_organizer.admin_module.views.CategoryOrganizeView", name="category.organize", permissions=get_default_model_permissions(Category)), admin_url( r"^categories/(?P<pk>\d+)/duplicate/$", "shuup_category_organizer.admin_module.views.CategoryDuplicateView", name="category.duplicate", permissions=get_default_model_permissions(Category)) ]
def get_urls(self): return [ admin_url( "^media/$", "shuup.admin.modules.media.views.MediaBrowserView", name="media.browse" ), admin_url( "^media/upload/$", "shuup.admin.modules.media.views.media_upload", name="media.upload" ) ]
def get_urls(self): return [ admin_url( "^adjust-stock/(?P<supplier_id>\d+)/(?P<product_id>\d+)/", "shuup.simple_supplier.admin_module.views.process_stock_adjustment", name="simple_supplier.stocks", permissions=get_default_model_permissions(StockAdjustment) ), admin_url( "^stocks/", "shuup.simple_supplier.admin_module.views.StocksListView", name="simple_supplier.stocks" ), ]
def get_urls(self): # doccov: ignore return [ admin_url( "^xtheme/(?P<theme_identifier>.+?)/", "shuup.xtheme.admin_module.views.ThemeConfigDetailView", name="xtheme.config_detail", permissions=get_default_model_permissions(ThemeSettings) ), admin_url( "^xtheme/", "shuup.xtheme.admin_module.views.ThemeConfigView", name="xtheme.config", permissions=get_default_model_permissions(ThemeSettings) ) ]
def get_urls(self): return [ admin_url( "^importer/import$", "shuup.importer.admin_module.import_views.ImportView", name="importer.import", permissions=get_default_model_permissions(Shop) ), admin_url( "^importer/import/process$", "shuup.importer.admin_module.import_views.ImportProcessView", name="importer.import_process", permissions=get_default_model_permissions(Shop) ), ]
def get_urls(self): return [ admin_url( "^shops/(?P<pk>\d+)/enable/$", "shuup.admin.modules.shops.views.ShopEnablerView", name="shop.enable" ), admin_url( "^shops/(?P<pk>\d+)/select/$", "shuup.admin.modules.shops.views.ShopSelectView", name="shop.select" ), ] + get_edit_and_list_urls( url_prefix="^shops", view_template="shuup.admin.modules.shops.views.Shop%sView", name_template="shop.%s" )
def get_urls(self): return [ admin_url( "^system/telemetry/$", "shuup.admin.modules.system.views.telemetry.TelemetryView", name="telemetry" ) ]
def get_urls(self): return [ admin_url( "^sample_data/$", "shuup.testing.modules.sample_data.views.ConsolidateSampleObjectsView", name="sample_data" ) ]
def get_urls(self): return [ admin_url( "^reports/$", "shuup.reports.admin_module.views.ReportView", name="reports.list" ) ]
def get_urls(self): return [ admin_url( "^mocker/$", "shuup.testing.modules.mocker.mocker_view.MockerView", name="mocker" ) ]
def get_urls(self): return [ admin_url( "^categories/(?P<pk>\d+)/copy-visibility/$", "shuup.admin.modules.categories.views.CategoryCopyVisibilityView", name="category.copy_visibility" ), admin_url( "^categories/(?P<pk>\d+)/delete/$", "shuup.admin.modules.categories.views.CategoryDeleteView", name="category.delete" ) ] + get_edit_and_list_urls( url_prefix="^categories", view_template="shuup.admin.modules.categories.views.Category%sView", name_template="category.%s" )
def get_urls(self): return [ admin_url( "^carts/$", "shuup.front.admin_module.carts.views.CartListView", name="cart.list" ), ]
def get_urls(self): return get_edit_and_list_urls( url_prefix="^tasks", view_template="shuup.tasks.admin_module.views.Task%sView", name_template="task.%s" ) + [ admin_url( "^tasks/(?P<pk>\d+)/delete/$", "shuup.tasks.admin_module.views.TaskDeleteView", name="task.delete" ), admin_url( "^tasks/(?P<pk>\d+)/set_status/$", "shuup.tasks.admin_module.views.TaskSetStatusView", name="task.set_status" ), ]
def get_urls(self): return [ admin_url( "^importer/import$", "shuup.importer.admin_module.import_views.ImportView", name="importer.import" ), admin_url( "^importer/import/process$", "shuup.importer.admin_module.import_views.ImportProcessView", name="importer.import_process" ), admin_url( "^importer/example$", "shuup.importer.admin_module.import_views.ExampleFileDownloadView", name="importer.download_example" ), ]
def get_urls(self): return [ admin_url( "^system/api/$", "shuup.api.admin_module.views.permissions.APIPermissionView", name="api_permission", permissions=get_default_model_permissions(Shop) ) ]
def get_urls(self): return [ admin_url( "^settings/$", "shuup.admin.modules.settings.views.SystemSettingsView", name="settings.list", permissions=get_default_model_permissions(Shop) ), ]
def get_urls(self): return [ admin_url( "^carts/$", "shuup.front.admin_module.carts.views.CartListView", name="cart.list", permissions=get_default_model_permissions(StoredBasket), ), ]
def get_urls(self): return [ admin_url( "^media/$", "shuup.admin.modules.media.views.MediaBrowserView", name="media.browse", permissions=get_default_model_permissions(File), ), ]
def get_urls(self): return [ admin_url( "^mocker/$", "shuup.testing.admin_module.mocker_view.MockerView", name="mocker", permissions=get_default_model_permissions(Shop) ) ]
def get_urls(self): # doccov: ignore return [ admin_url( "^xtheme/guide/(?P<theme_identifier>.+?)/", "shuup.xtheme.admin_module.views.ThemeGuideTemplateView", name="xtheme.guide" ), admin_url( "^xtheme/configure/(?P<theme_identifier>.+?)/", "shuup.xtheme.admin_module.views.ThemeConfigDetailView", name="xtheme.config_detail" ), admin_url( "^xtheme/theme", "shuup.xtheme.admin_module.views.ThemeConfigView", name="xtheme.config" ) ]
def get_urls(self): return [ admin_url( "^gdpr/$", "shuup.gdpr.admin_module.views.GDPRView", name="gdpr.settings" ), admin_url( "^gdpr/contact/(?P<pk>\d+)/anonymize/$", "shuup.gdpr.admin_module.views.GDPRAnonymizeView", name="gdpr.anonymize" ), admin_url( "^gdpr/contact/(?P<pk>\d+)/download/$", "shuup.gdpr.admin_module.views.GDPRDownloadDataView", name="gdpr.download_data" ) ]
def get_urls(self): return [ admin_url( "^system/telemetry/$", "shuup.admin.modules.system.views.telemetry.TelemetryView", name="telemetry", permissions=get_default_model_permissions(Shop) ), ]
def get_urls(self): return [ admin_url( "^sample_data/$", "shuup.admin.modules.sample_data.views.ConsolidateSampleObjectsView", name="sample_data", permissions=get_default_model_permissions(Shop) ) ]
def get_urls(self): permissions = get_default_model_permissions(get_user_model()) return [ admin_url( "^users/(?P<pk>\d+)/change-password/$", "shuup.admin.modules.users.views.UserChangePasswordView", name="user.change-password", permissions=permissions ), admin_url( "^users/(?P<pk>\d+)/reset-password/$", "shuup.admin.modules.users.views.UserResetPasswordView", name="user.reset-password", permissions=permissions ), admin_url( "^users/(?P<pk>\d+)/change-permissions/$", "shuup.admin.modules.users.views.UserChangePermissionsView", name="user.change-permissions", permissions=["auth.change_permission"] ), admin_url( "^users/(?P<pk>\d+)/$", "shuup.admin.modules.users.views.UserDetailView", name="user.detail", permissions=permissions ), admin_url( "^users/new/$", "shuup.admin.modules.users.views.UserDetailView", kwargs={"pk": None}, name="user.new", permissions=permissions ), admin_url( "^users/$", "shuup.admin.modules.users.views.UserListView", name="user.list", permissions=permissions ), admin_url( "^users/(?P<pk>\d+)/login/$", "shuup.admin.modules.users.views.LoginAsUserView", name="user.login-as", permissions=permissions ), admin_url( "^contacts/list-settings/", "shuup.admin.modules.settings.views.ListSettingsView", name="user.list_settings", permissions=permissions, ) ]