Ticket #13796: 13796.diff

File 13796.diff, 1.1 KB (added by Ramiro Morales, 14 years ago)
  • django/contrib/admindocs/views.py

    diff -r ff89427aa75a django/contrib/admindocs/views.py
    a b  
    5454    load_all_installed_template_libraries()
    5555
    5656    tags = []
    57     for module_name, library in template.libraries.items():
     57    app_libs = template.libraries.items()
     58    builtin_libs = [(None, lib) for lib in template.builtins]
     59    for module_name, library in builtin_libs + app_libs:
    5860        for tag_name, tag_func in library.tags.items():
    5961            title, body, metadata = utils.parse_docstring(tag_func.__doc__)
    6062            if title:
     
    8789    load_all_installed_template_libraries()
    8890
    8991    filters = []
    90     for module_name, library in template.libraries.items():
     92    app_libs = template.libraries.items()
     93    builtin_libs = [(None, lib) for lib in template.builtins]
     94    for module_name, library in builtin_libs + app_libs:
    9195        for filter_name, filter_func in library.filters.items():
    9296            title, body, metadata = utils.parse_docstring(filter_func.__doc__)
    9397            if title:
Back to Top