Remove south related monky patch.

remotes/origin/enhancement/email-actions
Andrey Antukh 2014-01-30 15:54:07 +01:00
parent b1ff6aa7b4
commit 7c04ff3117
2 changed files with 0 additions and 16 deletions

View File

@ -20,4 +20,3 @@ from . import monkey
monkey.patch_api_view()
monkey.patch_serializer()
monkey.patch_import_module()
monkey.patch_south_hacks()

View File

@ -81,18 +81,3 @@ def patch_import_module():
import importlib
django_importlib.import_module = importlib.import_module
def patch_south_hacks():
from south.hacks import django_1_0
orig_set_installed_apps = django_1_0.Hacks.set_installed_apps
def set_installed_apps(self, apps, preserve_models=True):
return orig_set_installed_apps(self, apps, preserve_models=preserve_models)
orig__redo_app_cache = django_1_0.Hacks._redo_app_cache
def _redo_app_cache(self, preserve_models=True):
return orig__redo_app_cache(self, preserve_models=preserve_models)
django_1_0.Hacks.set_installed_apps = set_installed_apps
django_1_0.Hacks._redo_app_cache = _redo_app_cache