Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

views.py

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
3+5 =