Skip to content

Commit

Permalink
Exclude assessment errata instead of filtering on 'No' (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo authored and RoyEJohnson committed Jun 11, 2018
1 parent b0106dc commit 0b2bebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errata/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Meta:


class ErrataView(ModelViewSet):
queryset = Errata.objects.filter(archived=False).filter(is_assessment_errata='No')
queryset = Errata.objects.filter(archived=False).exclude(is_assessment_errata='Yes')
serializer_class = ErrataSerializer
http_method_names = ['get', 'post', 'head']
filter_backends = (DjangoFilterBackend, OrderingFilter)
Expand Down

0 comments on commit 0b2bebd

Please sign in to comment.