예제 #1
0
 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")
     ]
예제 #2
0
    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")
예제 #3
0
 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),
     ]
예제 #4
0
    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")
예제 #5
0
    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")
예제 #6
0
파일: _discounts.py 프로젝트: ruqaiya/shuup
    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"
        )
예제 #7
0
    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")
예제 #8
0
    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")
예제 #9
0
파일: __init__.py 프로젝트: ruqaiya/shuup
    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"
        )
예제 #10
0
    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"
        )
예제 #11
0
    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"
        )