Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replaced a dict emulating a set with a set.

  • Loading branch information...
commit 79ff1aedd57a154a7563fb1b71c3e7997c513408 1 parent 6a092f2
Aymeric Augustin aaugustin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/db/models/loading.py
4 django/db/models/loading.py
View
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.