From 1d8d18d4de8fe97816d8db03c286ba38c0f29807 Mon Sep 17 00:00:00 2001 From: "a.gorbunov" Date: Thu, 23 Jan 2020 17:54:18 +0000 Subject: [PATCH] added order field --- apps/location/views/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/location/views/common.py b/apps/location/views/common.py index 963c0cae..d9968755 100644 --- a/apps/location/views/common.py +++ b/apps/location/views/common.py @@ -18,7 +18,7 @@ class CountryViewMixin(generics.GenericAPIView): class RegionViewMixin(generics.GenericAPIView): """View Mixin for model Region""" model = models.Region - queryset = models.Region.objects.all().order_by('name') + queryset = models.Region.objects.all().order_by('name', 'code') class CityViewMixin(generics.GenericAPIView):