added order field
This commit is contained in:
parent
f70a3abb8c
commit
1d8d18d4de
|
|
@ -18,7 +18,7 @@ class CountryViewMixin(generics.GenericAPIView):
|
||||||
class RegionViewMixin(generics.GenericAPIView):
|
class RegionViewMixin(generics.GenericAPIView):
|
||||||
"""View Mixin for model Region"""
|
"""View Mixin for model Region"""
|
||||||
model = models.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):
|
class CityViewMixin(generics.GenericAPIView):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user