def updateCategory(request):
return render(request, "Category/Update_category.html")
def update(request,id):
try:
col = category.objects.get(pk=id)
context={
"category":col
}
except Exception as ex:
print(ex)
return redirect("updatecategory",context)