From 48837177d8f1c1f9e7dbb509329ae0b002f59c0d Mon Sep 17 00:00:00 2001 From: Jake Merdich Date: Sat, 19 Nov 2016 16:47:13 -0500 Subject: [PATCH] Don't show invalid roots for add view --- report_builder/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report_builder/api/views.py b/report_builder/api/views.py index ed394e25..716cd488 100644 --- a/report_builder/api/views.py +++ b/report_builder/api/views.py @@ -39,7 +39,7 @@ class ContentTypeViewSet(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,)