From 5e01ef151c3c85fd8babd9b5b4f107971db93c1a Mon Sep 17 00:00:00 2001 From: CodeNinja04 Date: Tue, 5 Mar 2024 12:31:03 +0530 Subject: [PATCH] fix context issue by flattening the context --- explorer/views.py | 6 ++++-- setup.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/explorer/views.py b/explorer/views.py index 1a1ce4f1..83aa467a 100644 --- a/explorer/views.py +++ b/explorer/views.py @@ -316,7 +316,9 @@ def post(self, request): return self.render_with_sql(request, query, run_query=run_query, error=error) def render(self, request): - return self.render_template('explorer/play.html', request , {'title': 'Playground'}) + return self.render_template( + "explorer/play.html", {"title": "Playground", "request": request} + ) def render_with_sql(self, request, query, run_query=True, error=None): return self.render_template('explorer/play.html', @@ -426,4 +428,4 @@ def query_viewmodel(request, query, title=None, form=None, message=None, run_que 'replication_lag': replication_lag, } ) - return ret + return ret.flatten() diff --git a/setup.py b/setup.py index 492a0260..ea68e3a9 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ def read(fname): setup( name = "django-sql-explorer-squad", - version = __version__, + version = 0.9.25, author = "Chris Clark", author_email = "chris@untrod.com", description = ("A pluggable app that allows users (admins) to execute SQL,"