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