project sell info and initial synchro support
[redakcja.git] / src / redakcja / api / views.py
1 from rest_framework.generics import RetrieveAPIView
2 from rest_framework.permissions import IsAuthenticated
3 from . import serializers
4
5
6 class MeView(RetrieveAPIView):
7     permission_classes = [IsAuthenticated]
8     serializer_class = serializers.UserSerializer
9
10     def get_object(self):
11         return self.request.user