mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-22 09:38:18 +00:00
11 lines
320 B
Python
11 lines
320 B
Python
from rest_framework import viewsets
|
|
from api.serialisers import CommentSerialiser
|
|
from spa.models.comment import Comment
|
|
|
|
|
|
class CommentViewSet(viewsets.ModelViewSet):
|
|
"""
|
|
API endpoint that allows users to be viewed or edited.
|
|
"""
|
|
queryset = Comment.objects.all()
|
|
serializer_class = CommentSerialiser |