Exemple #1
0
def article_scrap_reposition(request, article_id, scrap_id, position, is_page=False):
    scraps_utils.scrap_reposition(scrap_id, position)
    utils.article_update_rendered_pile(article_id)
    if is_page:
        return redirect('articles_admin_page_edit', article_id=article_id)
    else:
        return redirect('articles_admin_article_edit', article_id=article_id)
Exemple #2
0
def scrap_reposition(request, scrap_id, position):
    utils.scrap_reposition(scrap_id, position)
    if request.is_ajax():
        return utils.asyncPileBodyRefresh(scrap_id)
    return redirect("scraps_admin_manage")