def get_urls(self): return [ admin_url("^archived_discounts", "shuup.discounts.admin.views.ArchivedDiscountListView", name="discounts.archive"), admin_url(r"^discounts/(?P<pk>\d+)/delete/$", "shuup.discounts.admin.views.DiscountDeleteView", name="discounts.delete") ]
def get_urls(self): from shuup.admin.urls import admin_url archive = admin_url( "^archived_discounts", "shuup.discounts.admin.views.ArchivedDiscountListView", name="discounts.archive") delete = admin_url("^discounts/(?P<pk>\d+)/delete/$", "shuup.discounts.admin.views.DiscountDeleteView", name="discounts.delete") return [archive, delete] + get_edit_and_list_urls( url_prefix="^discounts", view_template="shuup.discounts.admin.views.Discount%sView", name_template="discounts.%s")
def get_urls(self): from shuup.admin.urls import admin_url return [ admin_url( "^notification_logs", "shuup_logging.admin.notifications.NotificationLogListView", name=NOTIFICATION_LOG_URL_NAME), admin_url("^product_logs", "shuup_logging.admin.products.ProductLogListView", name=PRODUCT_LOG_URL_NAME), admin_url( "^shop_product_logs", "shuup_logging.admin.shop_products.ShopProductLogListView", name=SHOP_PRODUCT_LOG_URL_NAME), admin_url("^supplier_logs", "shuup_logging.admin.suppliers.SupplierLogListView", name=SUPPLIER_LOG_URL_NAME), ]
def get_urls(self): from shuup.admin.urls import admin_url delete = admin_url(r"^labels/(?P<pk>\d+)/delete/$", "shuup.admin.modules.labels.views.LabelDeleteView", name="label.delete") return [delete] + get_edit_and_list_urls( url_prefix="^labels", view_template="shuup.admin.modules.labels.views.Label%sView", name_template="label.%s")
def get_urls(self): from shuup.admin.urls import admin_url delete = admin_url("^discounts_coupon_codes/(?P<pk>\d+)/delete/$", "shuup.discounts.admin.views.CouponCodeDeleteView", name="discounts_coupon_codes.delete") return [delete] + get_edit_and_list_urls( url_prefix="^discounts_coupon_codes", view_template="shuup.discounts.admin.views.CouponCode%sView", name_template="discounts_coupon_codes.%s")
def get_urls(self): from shuup.admin.urls import admin_url archive = admin_url( "^archived_discounts", "shuup.discounts.admin.views.ArchivedDiscountListView", name="discounts.archive" ) delete = admin_url( "^discounts/(?P<pk>\d+)/delete/$", "shuup.discounts.admin.views.DiscountDeleteView", name="discounts.delete" ) return [archive, delete] + get_edit_and_list_urls( url_prefix="^discounts", view_template="shuup.discounts.admin.views.Discount%sView", name_template="discounts.%s" )
def get_urls(self): from shuup.admin.urls import admin_url delete = admin_url("^discounts_happy_hour/(?P<pk>\d+)/delete/$", "shuup.discounts.admin.views.HappyHourDeleteView", name="discounts_happy_hour.delete") return [delete] + get_edit_and_list_urls( url_prefix="^discounts_happy_hour", view_template="shuup.discounts.admin.views.HappyHour%sView", name_template="discounts_happy_hour.%s")
def get_urls(self): from shuup.admin.urls import admin_url delete = admin_url( "^discounts_availability_exception/(?P<pk>\d+)/delete/$", "shuup.discounts.admin.views.AvailabilityExceptionDeleteView", name="discounts_availability_exception.delete") return [delete] + get_edit_and_list_urls( url_prefix="^discounts_availability_exception", view_template= "shuup.discounts.admin.views.AvailabilityException%sView", name_template="discounts_availability_exception.%s")
def get_urls(self): from shuup.admin.urls import admin_url delete = admin_url( "^labels/(?P<pk>\d+)/delete/$", "shuup.admin.modules.labels.views.LabelDeleteView", name="label.delete" ) return [delete] + get_edit_and_list_urls( url_prefix="^labels", view_template="shuup.admin.modules.labels.views.Label%sView", name_template="label.%s" )
def get_urls(self): from shuup.admin.urls import admin_url delete = admin_url( "^discounts_availability_exception/(?P<pk>\d+)/delete/$", "shuup.discounts.admin.views.AvailabilityExceptionDeleteView", name="discounts_availability_exception.delete" ) return [delete] + get_edit_and_list_urls( url_prefix="^discounts_availability_exception", view_template="shuup.discounts.admin.views.AvailabilityException%sView", name_template="discounts_availability_exception.%s" )
def get_urls(self): from shuup.admin.urls import admin_url delete = admin_url( "^discounts_happy_hour/(?P<pk>\d+)/delete/$", "shuup.discounts.admin.views.HappyHourDeleteView", name="discounts_happy_hour.delete" ) return [delete] + get_edit_and_list_urls( url_prefix="^discounts_happy_hour", view_template="shuup.discounts.admin.views.HappyHour%sView", name_template="discounts_happy_hour.%s" )