summaryrefslogtreecommitdiff
path: root/postgresqleu/util/widgets.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-01-19 11:13:27 +0000
committerMagnus Hagander2019-01-19 11:13:27 +0000
commit1715efd3de47362ae2ed8ae8cba47b08c5fcfe74 (patch)
tree2f3474e33e53d42f2d0f26fb3bcc46b4ac945ac3 /postgresqleu/util/widgets.py
parentdb67639c0b582f486f1001f0351ff73a0ec25dfc (diff)
Include static fields show notification instructions
For Adyen and Paypal (so far), show exactly which URLs to enter into which fields to configure the integration.
Diffstat (limited to 'postgresqleu/util/widgets.py')
-rw-r--r--postgresqleu/util/widgets.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/postgresqleu/util/widgets.py b/postgresqleu/util/widgets.py
index bb12e74e..34a9cf0d 100644
--- a/postgresqleu/util/widgets.py
+++ b/postgresqleu/util/widgets.py
@@ -53,3 +53,8 @@ class AdminJsonWidget(PrettyPrintJsonWidget):
def render(self, name, value, attrs=None, renderer=None):
attrs['cols'] = 100
return super(AdminJsonWidget, self).render(name, value, attrs, renderer)
+
+
+class StaticTextWidget(TextInput):
+ def render(self, name, value, attrs=None, renderer=None):
+ return mark_safe(value)