Fixes #1622 - split the api into 4 apps: core, history, schedule, storage - exploded the settings into testing/prod
10 lines
273 B
Python
10 lines
273 B
Python
from rest_framework import viewsets
|
|
|
|
from ..models import Country
|
|
from ..serializers import CountrySerializer
|
|
|
|
|
|
class CountryViewSet(viewsets.ModelViewSet):
|
|
queryset = Country.objects.all()
|
|
serializer_class = CountrySerializer
|
|
model_permission_name = "country"
|