diff options
author | Kirill Yakovenko <kirill.yakovenko@gmail.com> | 2016-11-01 22:45:49 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-01 22:45:49 +0700 |
commit | d1e883ceb9272e0cb9c26801a706da12f1cebb6a (patch) | |
tree | b7bc1c3a9b5ac46ae15ff373d2c896a9e2efd409 /omaha_server/omaha/api.py | |
parent | b2907055db8037ef0701fc10b5a0fb865fd82afd (diff) | |
parent | 9e468645314a1a9f5108e492fc0906b52638964f (diff) | |
download | omaha-server-master.zip omaha-server-master.tar.gz omaha-server-master.tar.bz2 |
Merge pull request #230 from Crystalnix/devHEADorigin/masterorigin/HEADmaster
Sortable columns, PATCH request for versions, Hotfixs
Diffstat (limited to 'omaha_server/omaha/api.py')
-rw-r--r-- | omaha_server/omaha/api.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/omaha_server/omaha/api.py b/omaha_server/omaha/api.py index 4fda594..92d7a79 100644 --- a/omaha_server/omaha/api.py +++ b/omaha_server/omaha/api.py @@ -74,7 +74,7 @@ class StandardResultsSetPagination(pagination.PageNumberPagination): max_page_size = 100 -class AppViewSet(BaseView): +class AppViewSet(viewsets.ModelViewSet): """ API endpoint that allows applications to be viewed. @@ -152,12 +152,12 @@ class AppViewSet(BaseView): serializer_class = AppSerializer -class DataViewSet(BaseView): +class DataViewSet(viewsets.ModelViewSet): queryset = Data.objects.all().order_by('-id') serializer_class = DataSerializer -class PlatformViewSet(BaseView): +class PlatformViewSet(viewsets.ModelViewSet): queryset = Platform.objects.all().order_by('-id') serializer_class = PlatformSerializer @@ -167,12 +167,12 @@ class ChannelViewSet(viewsets.ModelViewSet): serializer_class = ChannelSerializer -class VersionViewSet(BaseView, mixins.UpdateModelMixin): +class VersionViewSet(viewsets.ModelViewSet): queryset = Version.objects.all().order_by('-id') serializer_class = VersionSerializer -class ActionViewSet(BaseView): +class ActionViewSet(viewsets.ModelViewSet): queryset = Action.objects.all().order_by('-id') serializer_class = ActionSerializer |