diff options
author | Andrey Mekin <amekin@crystalnix.com> | 2016-10-06 17:37:38 +0600 |
---|---|---|
committer | Andrey Mekin <amekin@crystalnix.com> | 2016-10-06 17:37:38 +0600 |
commit | 3bc6b56a7ab3dc6af0caa847fcf098712f44deaa (patch) | |
tree | bd3f05fdc4d97e98fad40d0feb0886509cfa48c2 /omaha_server/sparkle/api.py | |
parent | 2bf581c446aeadbe572d6a02729b529c1d187a43 (diff) | |
download | omaha-server-3bc6b56a7ab3dc6af0caa847fcf098712f44deaa.zip omaha-server-3bc6b56a7ab3dc6af0caa847fcf098712f44deaa.tar.gz omaha-server-3bc6b56a7ab3dc6af0caa847fcf098712f44deaa.tar.bz2 |
Add PATCH requests
Diffstat (limited to 'omaha_server/sparkle/api.py')
-rw-r--r-- | omaha_server/sparkle/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/omaha_server/sparkle/api.py b/omaha_server/sparkle/api.py index 594ad1f..005db7f 100644 --- a/omaha_server/sparkle/api.py +++ b/omaha_server/sparkle/api.py @@ -18,12 +18,12 @@ License for the specific language governing permissions and limitations under the License. """ -from omaha.api import BaseView +from rest_framework import viewsets from sparkle.serializers import SparkleVersionSerializer from sparkle.models import SparkleVersion -class SparkleVersionViewSet(BaseView): +class SparkleVersionViewSet(viewsets.ModelViewSet): queryset = SparkleVersion.objects.all().order_by('-id') serializer_class = SparkleVersionSerializer |