Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make a comment more accurate.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit dafb4951a7ff191f1b41146ca46b4cc662212997 1 parent fcee0c1
Alex Gaynor alex authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/template/base.py
4 django/template/base.py
View
@@ -1045,7 +1045,9 @@ def get_templatetags_modules():
global templatetags_modules
if not templatetags_modules:
_templatetags_modules = []
- # Populate list once per thread.
+ # Populate list once per process. Mutate the local list first, and then
+ # assign it to the global name to ensure there are no cases where two
+ # threads try to populate it simultaneously.
for app_module in ['django'] + list(settings.INSTALLED_APPS):
try:
templatetag_module = '%s.templatetags' % app_module
Please sign in to comment.
Something went wrong with that request. Please try again.