Skip to content

Commit

Permalink
Replaced a dict emulating a set with a set.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Jun 9, 2013
1 parent 6a092f2 commit 79ff1ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/db/models/loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={},
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 79ff1ae

Please sign in to comment.