1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-30 18:29:37 +02:00

Redownload when region data version changes

This commit is contained in:
Sean Morley 2024-09-13 20:33:44 -04:00
parent 6ac3f0541f
commit cc7c04b0ec
4 changed files with 32 additions and 3 deletions

View file

@ -34,7 +34,7 @@ def visits_by_country(request, country_code):
return Response(serializer.data)
class CountryViewSet(viewsets.ReadOnlyModelViewSet):
queryset = Country.objects.all()
queryset = Country.objects.all().order_by('name')
serializer_class = CountrySerializer
permission_classes = [IsAuthenticated]