X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f5743451874346b0dcca3fc18f767ef1d153e84d..32e632734c0a8390775bb8661edc78c2045cf5f3:/src/social/api/views.py diff --git a/src/social/api/views.py b/src/social/api/views.py index 4661df0c9..402245dc9 100644 --- a/src/social/api/views.py +++ b/src/social/api/views.py @@ -2,9 +2,8 @@ # Copyright © Fundacja Wolne Lektury. See NOTICE for more information. # from datetime import datetime -from pytz import utc from django.http import Http404 -from django.utils.timezone import now +from django.utils.timezone import now, utc from rest_framework.generics import ListAPIView, ListCreateAPIView, RetrieveAPIView, RetrieveUpdateAPIView, RetrieveUpdateDestroyAPIView, get_object_or_404 from rest_framework.permissions import IsAuthenticated, IsAuthenticatedOrReadOnly from rest_framework.response import Response