Ticket #27243: resolvers.diff

File resolvers.diff, 824 bytes (added by Etienne Robillard, 8 years ago)
  • django/urls/resolvers.py

    diff --git a/django/urls/resolvers.py b/django/urls/resolvers.py
    index 6af847c..e2cba52 100644
    a b class RegexURLResolver(LocaleRegexProvider):  
    166166        self._callback_strs = set()
    167167        self._populated = False
    168168        self._local = threading.local()
     169        #self._populate()
    169170
    170171    def __repr__(self):
    171172        if isinstance(self.urlconf_name, list) and len(self.urlconf_name):
    class RegexURLResolver(LocaleRegexProvider):  
    340341        if not self._populated:
    341342            self._populate()
    342343
     344        dot = lookup_view.rindex('.')
     345        lookup_view = lookup_view[dot+1:]
    343346        possibilities = self.reverse_dict.getlist(lookup_view)
    344347
    345348        for possibility, pattern, defaults in possibilities:
Back to Top