Skip to content

Instantly share code, notes, and snippets.

@jeroenp
jeroenp / models.py.diff
Created February 9, 2012 17:01
Database switching support in FeinCMS
--- ../milieubarometer/lib/python2.6/site-packages/feincms/models.py 2011-11-30 17:16:41.000000000 +0100
+++ lib/python2.6/site-packages/feincms/models.py 2012-02-09 17:59:55.000000000 +0100
@@ -104,6 +104,7 @@
def __init__(self, item):
item._needs_content_types()
self.item = item
+ self.using = 'default'
self._cache = {
'cts': {},
}