aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2013-03-26 18:35:10 +0000
committerMichael Elkins <melkins@tislabs.com>2013-03-26 18:35:10 +0000
commit2bfcaaebd4f8caf9f88ded085a3d95f9b6ce3ee7 (patch)
tree762623725aceb501c36f860a2982454af041e8dd
parent71b109c7774bc5de8ab4624579b6b43e5531ce45 (diff)
rollback the change in [5093] since that only applied to DEBUG=True and we no longer are shipping that way.
svn path=/trunk/; revision=5223
-rw-r--r--rpkid/portal-gui/settings.py.in21
1 files changed, 0 insertions, 21 deletions
diff --git a/rpkid/portal-gui/settings.py.in b/rpkid/portal-gui/settings.py.in
index f4195ccd..7e4a62a7 100644
--- a/rpkid/portal-gui/settings.py.in
+++ b/rpkid/portal-gui/settings.py.in
@@ -19,26 +19,6 @@ rpki.config.default_dirname = '%(AC_SYSCONFDIR)s'
rpki_config = rpki.config.parser(section='web_portal')
-def get_conv():
- """Add a custom data converter to encode long() as a hex string
- in generated SQL statements.
-
- This is necessary since Django doesn't support binary field types, and
- assumes all strings are UTF-8. Without this conversion, the generated SQL
- uses a raw byte string.
-
- See https://trac.rpki.net/ticket/434
-
- """
- from MySQLdb.converters import conversions
- import types
- conv = conversions.copy()
- # WARNING: the extra percents in the following line are due to the fact
- # that this entire script is used as a format string to generate
- # settings.py
- conv[types.LongType] = lambda x, conv: "0x%%x" %% x
- return conv
-
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
@@ -53,7 +33,6 @@ DATABASES = {
'OPTIONS': {
'init_command': 'SET storage_engine=INNODB',
- 'conv': get_conv(),
}
}
}