Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #86 from Mehdi-MosTafavi/fix/overall
Browse files Browse the repository at this point in the history
auction create parser
  • Loading branch information
ShahrzadAzari authored Jul 11, 2022
2 parents 74f6c81 + d01305f commit 06c9284
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions saku/auction/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@
GeneralErrorResponseSerializer,
)
from rest_framework.permissions import IsAuthenticated
from rest_framework.parsers import MultiPartParser
from auction.models import Auction, Category, Tags
from datetime import datetime


class CreateListAuction(generics.ListCreateAPIView):
permission_classes = (IsAuthenticated,)
parser_classes = [MultiPartParser]
queryset = Auction.objects.order_by("finished_at")

@swagger_auto_schema(
Expand Down

0 comments on commit 06c9284

Please sign in to comment.