Browse files

Replaced a dict emulating a set with a set.

  • Loading branch information...
1 parent 6a092f2 commit 79ff1aedd57a154a7563fb1b71c3e7997c513408 @aaugustin aaugustin committed Jun 9, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/db/models/loading.py
View
4 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 @@ def load_app(self, app_name, can_postpone=False):
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:

0 comments on commit 79ff1ae

Please sign in to comment.