order supervisors

This commit is contained in:
Ross
2024-09-09 12:51:10 +01:00
parent 41a4aa1a4c
commit 7b481c1327
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -2623,7 +2623,7 @@ class SupervisorAutocomplete(autocomplete.Select2QuerySetView):
if not self.request.user.is_authenticated:
return Supervisor.objects.none()
qs = Supervisor.objects.all()
qs = Supervisor.objects.all().order_by("name")
if self.q:
# This raises a fielderror which breaks creating a new item if not caught
+5
View File
@@ -1282,4 +1282,9 @@ tr:has(> td > a) {
.hover-highlight:hover {
opacity: 100%;
color:purple;
}
/* For crispy... */
.select2-selection {
padding-bottom: 30px;
}