Remove south related monky patch.
parent
b1ff6aa7b4
commit
7c04ff3117
|
@ -20,4 +20,3 @@ from . import monkey
|
|||
monkey.patch_api_view()
|
||||
monkey.patch_serializer()
|
||||
monkey.patch_import_module()
|
||||
monkey.patch_south_hacks()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue