Skip to content

Commit

Permalink
Don't show invalid roots for add view
Browse files Browse the repository at this point in the history
  • Loading branch information
jmerdich committed Nov 30, 2016
1 parent 38e3e72 commit 298104b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report_builder/api/views.py
Original file line number Diff line number Diff line change
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 = Report.allowed_models()
serializer_class = ContentTypeSerializer
permission_classes = (IsAdminUser,)

Expand Down

0 comments on commit 298104b

Please sign in to comment.