def manage_category(request, category_id, template_name="manage/category/manage_category.html"): """Displays the form to manage the category with given category id. """ category = Category.objects.get(pk=category_id) return render_to_response( template_name, RequestContext( request, { "categories_portlet": manage_categories_portlet(request, category_id), "category": category, "data": category_data(request, category_id), "seo": SEOView(Category).render(request, category), "view": category_view(request, category_id), "portlets": portlets_inline(request, category), "dialog_message": _("Do you really want to delete the category <b>'%(name)s'</b> and all its sub categories?" ) % { "name": category.name }, }))
def manage_category(request, category_id, template_name="manage/category/manage_category.html"): """Displays the form to manage the category with given category id. """ category = Category.objects.get(pk=category_id) return render(request, template_name, { "categories_portlet": manage_categories_portlet(request, category_id), "category": category, "data": category_data(request, category_id), "seo": SEOView(Category).render(request, category), "view": category_view(request, category_id), "portlets": portlets_inline(request, category), "dialog_message": _("Do you really want to delete the category <b>'%(name)s'</b> and all its sub categories?") % {"name": category.name}, })