diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-06-09 14:31:04 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-06-09 14:31:04 +0200 |
| commit | 79ff1aedd57a154a7563fb1b71c3e7997c513408 (patch) | |
| tree | 9158899a44dbbe68b94b01ae2b914bde92db5503 | |
| parent | 6a092f24e01b6448f4e5601968db82720c9397de (diff) | |
Replaced a dict emulating a set with a set.
| -rw-r--r-- | django/db/models/loading.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/models/loading.py b/django/db/models/loading.py index 4372873e50..5ad2f12ba0 100644 --- a/django/db/models/loading.py +++ b/django/db/models/loading.py @@ -39,7 +39,7 @@ class AppCache(object): # -- Everything below here is only used when populating the cache -- loaded=False, - handled={}, + handled=set(), postponed=[], nesting_level=0, _get_models_cache={}, @@ -89,7 +89,7 @@ class AppCache(object): Loads the app with the provided fully qualified name, and returns the model module. """ - self.handled[app_name] = None + self.handled.add(app_name) self.nesting_level += 1 app_module = import_module(app_name) try: |
