diff --git a/quackscape/users/views.py b/quackscape/users/views.py index 8923023..2f34c7f 100644 --- a/quackscape/users/views.py +++ b/quackscape/users/views.py @@ -91,14 +91,19 @@ class FileUploadView(LoginRequiredMixin, GenericAPIView): instance = serializer.save() instance.category = Category.objects.get(id=kwargs["category"]) instance.save() - return Response(OriginalMediaSerializer(instance, context={'request': request}).data, status=status.HTTP_201_CREATED) + return Response( + OriginalMediaSerializer(instance, context={"request": request}).data, + status=status.HTTP_201_CREATED, + ) else: return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) + class Login(TitleMixin, LoginView): title = "Login" template_name = "users/login.html" + class Logout(LogoutView): - pass \ No newline at end of file + pass