Exemple #1
0
def edit(request, slug):
  return common_views.content_edit(request, slug, 'post', PostItem, PostItemForm, 'blog_edit.html', redirect_to=True)
Exemple #2
0
def edit(request, uuid):
  return common_views.content_edit(request, uuid, 'pages', Page, PageForm, redirect_to=True)
Exemple #3
0
def edit(request, slug):
    return common_views.content_edit(
        request, slug, "menus", MenuItem, MenuItemForm, "menuitems_edit.html", redirect_to=MenuItem.admin_url()
    )