Skip to content

Commit

Permalink
Merge c30242c into e41723b
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjamkr committed Jul 9, 2017
2 parents e41723b + c30242c commit 1775cfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions report_builder/api/views.py
Expand Up @@ -7,7 +7,7 @@
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.permissions import IsAdminUser
from ..models import Report, Format, FilterField
from ..models import Report, Format, FilterField, get_allowed_models
from .serializers import (
ReportNestedSerializer, ReportSerializer, FormatSerializer,
FilterFieldSerializer, ContentTypeSerializer)
Expand Down Expand Up @@ -44,7 +44,7 @@ class ContentTypeViewSet(ReportBuilderViewMixin, viewsets.ReadOnlyModelViewSet):
""" Read only view of content types.
Used to populate choices for new report root model.
"""
queryset = ContentType.objects.all()
queryset = get_allowed_models()
serializer_class = ContentTypeSerializer
permission_classes = (IsAdminUser,)

Expand Down

0 comments on commit 1775cfa

Please sign in to comment.