We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The code below is working with htmx 1 and not 2 hx-delete="{%url 'delete-loans'%}" hx-target="#container" hx-indicator="#spinner"
@login_required def delete_loans(request): data = request.body.decode("utf-8") q = QueryDict(data, mutable=True) checked_ids = q.getlist("ids")
Transaction.objects.filter(pk__in=checked_ids).delete() return redirect(reverse("loans"))
The text was updated successfully, but these errors were encountered:
HTMX changed DELETE to use URL params instead of the request body (see migration guide].
Looks like you're using Django, so the data will be in request.GET (which probably should have been named request.QUERY but 🤷♂️).
request.GET
request.QUERY
Sorry, something went wrong.
No branches or pull requests
The code below is working with htmx 1 and not 2
hx-delete="{%url 'delete-loans'%}" hx-target="#container" hx-indicator="#spinner"
@login_required
def delete_loans(request):
data = request.body.decode("utf-8")
q = QueryDict(data, mutable=True)
checked_ids = q.getlist("ids")
The text was updated successfully, but these errors were encountered: