Commits

Andrew Godwin committed 725f174 Merge

Merged in charettes/south/django-1.6-app_cache (pull request #132)

Correctly repopulate app cache on Django >= 1.6

  • Participants
  • Parent commits 32cd0b8, f1e1369

Comments (0)

Files changed (1)

File south/hacks/django_1_0.py

 Hacks for the Django 1.0/1.0.2 releases.
 """
 
+import django
 from django.conf import settings
 from django.db.backends.creation import BaseDatabaseCreation
 from django.db.models.loading import cache
         Used to repopulate AppCache after fiddling with INSTALLED_APPS.
         """
         cache.loaded = False
-        cache.handled = {}
+        cache.handled = set() if django.VERSION >= (1, 6) else {}
         cache.postponed = []
         cache.app_store = SortedDict()
         cache.app_models = SortedDict()