public inbox for [email protected]  
help / color / mirror / Atom feed
From: Nikhil Mohite <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin][RM-6286]: Template database is not displayed in Databases node.
Date: Thu, 4 Mar 2021 17:34:32 +0530
Message-ID: <CAOBg0APTBJEUh1MKu+gK2s=aw5pPG3YGcjcqvXigz8KR=Ns9MA@mail.gmail.com> (raw)

Hi Hackers,

Please find the attached patch for RM-6286
<https://redmine.postgresql.org/issues/6286;: The template database is not
displayed in the Databases node.
I have also tested issue RM-5875
<https://redmine.postgresql.org/issues/5875; (Which is related to this
issue) after new changes and it is working fine.

-- 
*Thanks & Regards,*
*Nikhil Mohite*
*Software Engineer.*
*EDB Postgres* <https://www.enterprisedb.com/;
*Mob.No: +91-7798364578.*


Attachments:

  [application/octet-stream] RM-6286.patch (671B, 3-RM-6286.patch)
  download | inline diff:
diff --git a/web/pgadmin/browser/server_groups/servers/databases/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/__init__.py
index 0223fb60..55e00898 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/__init__.py
+++ b/web/pgadmin/browser/server_groups/servers/databases/__init__.py
@@ -343,7 +343,7 @@ class DatabaseView(PGChildNodeView):
         SQL = render_template(
             "/".join([self.template_path, self._NODES_SQL]),
             last_system_oid=0,
-            show_system_objects=self.blueprint.show_system_objects,
+            show_system_objects=True,
         )
         status, rset = self.conn.execute_dict(SQL)
 


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [pgAdmin][RM-6286]: Template database is not displayed in Databases node.
  In-Reply-To: <CAOBg0APTBJEUh1MKu+gK2s=aw5pPG3YGcjcqvXigz8KR=Ns9MA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox