mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-14 10:51:21 +01:00
15 lines
416 B
Python
15 lines
416 B
Python
from rest_framework import viewsets
|
|
from rest_framework.permissions import IsAdminUser
|
|
|
|
from helpdesk.models import Ticket
|
|
from helpdesk.serializers import TicketSerializer
|
|
|
|
|
|
class TicketViewSet(viewsets.ModelViewSet):
|
|
"""
|
|
A viewset that provides the standard actions to handle Ticket
|
|
"""
|
|
queryset = Ticket.objects.all()
|
|
serializer_class = TicketSerializer
|
|
permission_classes = [IsAdminUser]
|