From d0d4532745f2eb2186e9119ad29905b5d27b585a Mon Sep 17 00:00:00 2001 From: "Mr. Senko" Date: Mon, 30 Jul 2018 16:13:47 +0300 Subject: [PATCH] Tech preview: Django Report Builder Makes it possible for power users and admins to generate tabular reports: http://django-report-builder.readthedocs.io/en/latest/howto/ You will have to know the existing DB schema if you want to create your own reports. See: http://kiwitcms.readthedocs.io/en/latest/db.html Please comment at: https://github.com/kiwitcms/Kiwi/issues/452 --- requirements/base.txt | 1 + tcms/settings/common.py | 2 ++ tcms/templates/navigation.html | 3 +++ tcms/urls.py | 2 ++ 4 files changed, 8 insertions(+) diff --git a/requirements/base.txt b/requirements/base.txt index 239f5b1d8e..373687285e 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -2,6 +2,7 @@ Django==2.0.7 django-attachments>=1.3 django-glrm django-grappelli +django-report-builder django-simple-history django-vinaigrette django-uuslug diff --git a/tcms/settings/common.py b/tcms/settings/common.py index a8993502f8..3d89420bf7 100644 --- a/tcms/settings/common.py +++ b/tcms/settings/common.py @@ -200,6 +200,7 @@ 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.static', + 'django.template.context_processors.media', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', @@ -236,6 +237,7 @@ 'django_comments', 'dj_pagination', 'modernrpc', + 'report_builder', 'simple_history', 'tinymce', diff --git a/tcms/templates/navigation.html b/tcms/templates/navigation.html index 75139a5edc..cad01ea518 100644 --- a/tcms/templates/navigation.html +++ b/tcms/templates/navigation.html @@ -163,6 +163,9 @@
  • Testing report
  • +
  • + Report builder +
  • diff --git a/tcms/urls.py b/tcms/urls.py index 2c668b4e62..db48380464 100644 --- a/tcms/urls.py +++ b/tcms/urls.py @@ -12,6 +12,7 @@ from modernrpc.core import JSONRPC_PROTOCOL from modernrpc.core import XMLRPC_PROTOCOL from modernrpc.views import RPCEntryPoint +import report_builder.urls as report_builder_urls from tinymce import urls as tinymce_urls from tcms.core import ajax from tcms.core import views as core_views @@ -90,6 +91,7 @@ # Report zone url(r'^report/', include(report_urls)), + url(r'^report_builder/', include(report_builder_urls)), # Advanced search url(r'^advance-search/$',