Ticket #537: urlresolvers.patch

File urlresolvers.patch, 615 bytes (added by fonso, 19 years ago)
  • django/core/urlresolvers.py

     
    7878            return self._urlconf_module
    7979    urlconf_module = property(_get_urlconf_module)
    8080
     81    def _get_url_patterns(self):
     82        return self.urlconf_module.urlpatterns
     83    url_patterns = property(_get_url_patterns)
     84
    8185    def _resolve_special(self, view_type):
    8286        callback = getattr(self.urlconf_module, 'handler%s' % view_type)
    8387        mod_name, func_name = get_mod_func(callback)
Back to Top