So I have a page that displays a table and on each row I have a button called delete that deletes that row and all the information related to it in my database.

The delete button works fine, as in it deletes the information in my DB, but I'd like to redirect it to the page where I display the table.

The problem is that, to access the page that shows the table, it is done through a search with POST method. I thought of saving the parameters that I save when I do the search in a global variable and then render the table page again, with those saved parameters from the initial search, it kinda works, but not they way I want it: It changes my URL to the one that redirects after clicking delete, and, it doesnt update the page manually, so I still see the row I deleted, tho If i refresh it manually, I can't see the deleted row anymore.

**views.py:**

```
def character_delete (request):
    if request.method == "GET":
        Id = request.GET.get("idChar")
        char = Characterweapons.objects.all().filter(characterid=Id).delete()
        char2 = Characters.objects.all().filter(characterid=Id).delete()

    global cont

    return render(request, 'users/characters_found_table.html',cont)

```

Any ideas?

Thanks!