summaryrefslogtreecommitdiffstats
path: root/omaha_server/sparkle/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'omaha_server/sparkle/api.py')
-rw-r--r--omaha_server/sparkle/api.py4
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