diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2011-09-10 19:45:16 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2011-09-10 19:45:16 +0000 |
| commit | dafb4951a7ff191f1b41146ca46b4cc662212997 (patch) | |
| tree | 24dab2d7e7c83a66faf083e1bcf27a84577d9b54 | |
| parent | fcee0c1b66019a0e84bc338e76fa31695d5bd4ca (diff) | |
Make a comment more accurate.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/template/base.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/django/template/base.py b/django/template/base.py index 9a7f55f8de..c94eeb51f9 100644 --- a/django/template/base.py +++ b/django/template/base.py @@ -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 |
