mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	Order aliases by name
This commit is contained in:
		@@ -109,7 +109,7 @@ class ConsumerViewSet(ReadOnlyProtectedModelViewSet):
 | 
			
		||||
        queryset = queryset.filter(
 | 
			
		||||
            Q(name__regex="^" + 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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user