#11115: overriding change_list.html causes 'maximum recursion depth exceeded'
exceptin
----------------------------------------+-----------------------------------
   Reporter:  [email protected]  |                Owner:  nobody    
     Status:  new                       |            Milestone:            
  Component:  Uncategorized             |              Version:  1.1-beta-1
   Keywords:                            |                Stage:  Unreviewed
  Has_patch:  0                         |           Needs_docs:  0         
Needs_tests:  0                         |   Needs_better_patch:  0         
----------------------------------------+-----------------------------------
 I am trying to override the admin sites' change_list.html, following
 the example at:

 http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-ad...

 If I create templates/admin/myapp/change_list.html and just put this
 in it (and nothing else):

 {% extends "admin/change_list.html" %}

 I get


 {{{
 Request Method:         GET
 Request URL:    http://172.16.84.5:8042/admin/taskmanager/task/
 Exception Type:         TemplateSyntaxError
 Exception Value:

 Caught an exception while rendering: maximum recursion depth exceeded
 in cmp

 Original Traceback (most recent call last):
   File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
 packages/django/template/debug.py", line 71, in render_node
     result = node.render(context)
   File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
 packages/django/template/loader_tags.py", line 71, in render
     compiled_parent = self.get_parent(context)
   File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
 packages/django/template/loader_tags.py", line 64, in get_parent
     source, origin = find_template_source(parent, self.template_dirs)
   File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
 packages/django/template/loader.py", line 70, in find_template_source
     source, display_name = loader(name, dirs)
   File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
 packages/django/template/loaders/filesystem.py", line 31, in
 load_template_source
     for filepath in get_template_sources(template_name,
 template_dirs):
   File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
 packages/django/template/loaders/filesystem.py", line 16, in
 get_template_sources
     template_dirs = settings.TEMPLATE_DIRS
   File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
 packages/django/utils/functional.py", line 270, in __getattr__
     if name == "__members__":
 RuntimeError: maximum recursion depth exceeded in cmp

 Exception Location:     /tools/aticad/1.0/external/python-2.5.1/lib/
 python2.5/site-packages/django/template/debug.py in render_node, line
 81

 }}}

 I'm using the beta:
 >>> django.VERSION

 (1, 1, 0, 'beta', 1)

 It has also been confirmed by another user on 1.0.2.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11115>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to