Skip to content

Commit

Permalink
Something wrong with merging from master
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Jacobs committed Jan 6, 2016
1 parent c4c4dd3 commit f16a06f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oscarapi/views/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ class CountryDetail(generics.RetrieveAPIView):
class BasketList(generics.ListCreateAPIView):
serializer_class = serializers.BasketSerializer
queryset = Basket.objects.all()
permission_classes = (IsAdminUser,)

def get_queryset(self):
qs = Basket.objects.all()
qs = super(BasketList, self).get_queryset()
return itertools.imap(
functools.partial(assign_basket_strategy, request=self.request),
qs)
Expand Down

0 comments on commit f16a06f

Please sign in to comment.