mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-12-01 05:54:01 +03:00
14 lines
370 B
Python
14 lines
370 B
Python
from rest_framework import viewsets
|
|
from rest_framework.permissions import AllowAny
|
|
|
|
from . import models, serializers
|
|
|
|
|
|
class SummaryViewSet(viewsets.ModelViewSet):
|
|
"""
|
|
A simple ViewSet for viewing and editing accounts.
|
|
"""
|
|
queryset = models.Summary.objects.all()
|
|
serializer_class = serializers.SummarySerializer
|
|
permission_classes = [AllowAny]
|