Ticket #2529: admin-doc.diff

File admin-doc.diff, 647 bytes (added by dummy@…, 18 years ago)

there seems a typo of _get_callback

  • django/contrib/admin/views/doc.py

     
    328328    """
    329329    views = []
    330330    for p in urlpatterns:
    331         if hasattr(p, 'get_callback'):
     331        if hasattr(p, '_get_callback'):
    332332            try:
    333                 views.append((p.get_callback(), base + p.regex.pattern))
     333                views.append((p._get_callback(), base + p.regex.pattern))
    334334            except ViewDoesNotExist:
    335335                continue
    336336        elif hasattr(p, '_get_url_patterns'):
Back to Top