-
-
Save tbazadaykin/e6988c30f76e093cb902 to your computer and use it in GitHub Desktop.
django-firebird role support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 2008e406f451aefaee46ec8a87c8c3d9c39cc984 Mon Sep 17 00:00:00 2001 | |
From: "Anton V. Badaykin" <badaykin@atvc.ru> | |
Date: Fri, 5 Feb 2016 16:21:56 +0300 | |
Subject: [PATCH] Role support. | |
--- | |
firebird/base.py | 2 ++ | |
1 file changed, 2 insertions(+) | |
diff --git a/firebird/base.py b/firebird/base.py | |
index 5414567..4638add 100644 | |
--- a/firebird/base.py | |
+++ b/firebird/base.py | |
@@ -131,6 +131,8 @@ class DatabaseWrapper(BaseDatabaseWrapper): | |
conn_params['port'] = settings_dict['PORT'] | |
if settings_dict['USER']: | |
conn_params['user'] = settings_dict['USER'] | |
+ if settings_dict['ROLE']: | |
+ conn_params['role'] = settings_dict['ROLE'] | |
if settings_dict['PASSWORD']: | |
conn_params['password'] = settings_dict['PASSWORD'] | |
options = settings_dict['OPTIONS'].copy() | |
-- | |
1.7.10.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment