Example #1
0
def delete_item(request, item_id):
    return delete_site_object(request, Item, item_id, 'dashboard_menu')
Example #2
0
def delete_img(request, img_id):
    return delete_site_object(request, ItemImage, img_id, "dashboard_img_list")
Example #3
0
def delete_section(request, section_id):
    return delete_site_object(request, Section, section_id, 'dashboard_menu')
Example #4
0
def publish_delete(request, release_id):
    KeyChain.news.invalidate(request.site.id)
    return delete_site_object(request, Release, release_id,
                              'dashboard_publish')
Example #5
0
def delete_pdf(request, pdf_id):
    return delete_site_object(request, PdfMenu, pdf_id, "dashboard_pdf_list")
Example #6
0
def delete_img(request, img_id):
    return delete_site_object(request, ItemImage, img_id, 'dashboard_img_list')
Example #7
0
def delete_coupon(request, coupon_id):
    return delete_site_object(request, Coupon, coupon_id,
                              'dashboard_marketing')
Example #8
0
def delete_pdf(request, pdf_id):
    return delete_site_object(request, PdfMenu, pdf_id, 'dashboard_pdf_list')
Example #9
0
def delete_item(request, item_id):
    return delete_site_object(request, Item, item_id, 'dashboard_menu')
Example #10
0
def delete_section(request, section_id):
    return delete_site_object(request, Section, section_id, 'dashboard_menu')
Example #11
0
def publish_delete(request, release_id):
    KeyChain.news.invalidate(request.site.id)
    return delete_site_object(request, Release, release_id, 'dashboard_publish')
Example #12
0
def delete_coupon(request, coupon_id):
    return delete_site_object(request, Coupon, coupon_id, 'dashboard_marketing')