fresh-judge-74869
02/26/2022, 1:18 PMdef company_project_client(request):
company_pk = request.GET.get("main-company")
project_qs = Project.objects.filter(company=company_pk)
clientprofile_qs = ClientProfile.objects.filter(company=company_pk)
context = {
"project_qs": project_qs,
"clientprofile_qs": clientprofile_qs,
}
return render(request, "orders/company_project_client.html", context)
and this is my template
<div id="id_main-project-client" class="form-group col-md-2">
<div class="form-group">
<label for="">Proyecto</label>
<select name="main-project" class="form-control" id="id_main-project">
<option value>---------</option>
{% for project in project_qs %}
<option value="{{ project.pk }}">{{ project.name|safe }}</option>
{% endfor %}
</select>
</div>
<div class="form-group">
<label for="">Cliente</label>
<select name="main-client" class="form-control" id="id_main-client">
<option value>---------</option>
{% for clientprofile in clientprofile_qs %}
<option value="{{ clientprofile.pk }}">DNI:{{ clientprofile.user.dni|safe }} {{ clientprofile.user.first_name|title|safe }} {{ clientprofile.user.last_name|title|safe }}</option>
{% endfor %}
</select>
</div>
</div>
fresh-judge-74869
02/26/2022, 2:47 PMdict_values([['Select a valid choice. That choice is not one of the available choices.'], ['Select a valid choice. That choice is not one of the available choices.']])
future-continent-38061
02/27/2022, 8:50 PMgorgeous-airport-54386
02/27/2022, 9:00 PMfuture-continent-38061
02/27/2022, 9:06 PMgorgeous-airport-54386
02/27/2022, 9:07 PMfuture-continent-38061
02/27/2022, 9:13 PMgorgeous-airport-54386
02/27/2022, 9:14 PMhx-trigger=change
gorgeous-airport-54386
02/27/2022, 9:14 PMfuture-continent-38061
02/27/2022, 9:31 PMgorgeous-airport-54386
02/27/2022, 9:35 PMgorgeous-airport-54386
02/27/2022, 9:35 PMfuture-continent-38061
02/27/2022, 9:42 PMgorgeous-airport-54386
02/27/2022, 9:43 PMfuture-continent-38061
02/27/2022, 9:50 PMcalm-ice-23682
02/27/2022, 10:37 PMhundreds-pillow-63494
02/28/2022, 1:28 AMwitty-yak-87722
02/28/2022, 5:50 PMlemon-battery-11524
03/01/2022, 7:02 PM<div id="bookings"
hx-trigger="load, bookingsChanged from:body"
hx-get="{% url 'upcoming_bookings' %}"
hx-target="this">
</div>
And every time it triggers undefined
is added to the get request like so:
"GET /dashboard/bookings/upcoming/?undefined=undefined HTTP/1.1" 200 7408
What's that and how do I get rid of it?hundreds-camera-24900
03/01/2022, 9:32 PMhundreds-camera-24900
03/01/2022, 9:32 PMhundreds-camera-24900
03/01/2022, 9:33 PMhundreds-camera-24900
03/01/2022, 9:33 PMlemon-battery-11524
03/01/2022, 10:57 PMhx-params='none'
but it's still the same 🤔hundreds-camera-24900
03/02/2022, 1:24 AMhundreds-camera-24900
03/02/2022, 1:25 AMhundreds-camera-24900
03/02/2022, 2:35 PMhundreds-camera-24900
03/02/2022, 2:35 PM