Order aliases by name
This commit is contained in:
parent
5a91cac08d
commit
20011db37e
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ class ConsumerViewSet(ReadOnlyProtectedModelViewSet):
|
||||||
queryset = queryset.filter(
|
queryset = queryset.filter(
|
||||||
Q(name__regex="^" + alias)
|
Q(name__regex="^" + alias)
|
||||||
| Q(normalized_name__regex="^" + Alias.normalize(alias))
|
| Q(normalized_name__regex="^" + Alias.normalize(alias))
|
||||||
| Q(normalized_name__regex="^" + alias.lower()))
|
| Q(normalized_name__regex="^" + alias.lower())).order_by('name')
|
||||||
|
|
||||||
return queryset
|
return queryset
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue