public inbox for [email protected]
help / color / mirror / Atom feedFrom: Célestin Matte <[email protected]>
To: [email protected]
Subject: [PATCH 1/3] Add orgname tag and settings to define organization name
Date: Tue, 2 Nov 2021 17:18:42 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
--
Célestin Matte
Attachments:
[text/x-patch] 0001-Add-orgname-tag-and-settings-to-define-organization-.patch (1.6K, 2-0001-Add-orgname-tag-and-settings-to-define-organization-.patch)
download | inline diff:
From 476a2d1ce18fc56a097dd5e0f870af5e92302a98 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9lestin=20Matte?= <[email protected]>
Date: Tue, 2 Nov 2021 16:51:51 +0100
Subject: [PATCH 1/3] Add orgname tag and settings to define organization name
---
web/pglister/lists/templatetags/pglister.py | 5 +++++
web/pglister/settings.py | 2 ++
2 files changed, 7 insertions(+)
diff --git a/web/pglister/lists/templatetags/pglister.py b/web/pglister/lists/templatetags/pglister.py
index ad2fc99..3360284 100644
--- a/web/pglister/lists/templatetags/pglister.py
+++ b/web/pglister/lists/templatetags/pglister.py
@@ -1,6 +1,7 @@
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
+from django.conf import settings
from lib.baselib.lists import ModerationReason, ModerationOption
@@ -80,3 +81,7 @@ def moderation_options(context, reason, is_subscribed):
@register.filter
def replacepercent(obj, replacewith):
return obj.replace('%', replacewith)
+
[email protected]_tag
+def orgname():
+ return settings.ORGANIZATION_NAME
diff --git a/web/pglister/settings.py b/web/pglister/settings.py
index ba69207..6da88a1 100644
--- a/web/pglister/settings.py
+++ b/web/pglister/settings.py
@@ -114,6 +114,8 @@ DATETIME_FORMAT = "Y-m-d H:i:s"
STATIC_URL = '/media/'
+ORGANIZATION_NAME = 'PostgreSQL'
+
# Override in local settings
USE_PG_COMMUNITY_AUTH = True # Right now we *always* do, but this is used to turn on/off some local features
PGAUTH_REDIRECT = "http://localhost:8000/account/auth/12/"
--
2.33.1
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], [email protected]
Subject: Re: [PATCH 1/3] Add orgname tag and settings to define organization name
In-Reply-To: <[email protected]>
* 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