Changes between Initial Version and Version 1 of Ticket #17566, comment 6
- Timestamp:
- Aug 15, 2012, 2:45:58 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17566, comment 6
initial v1 3 3 > This is largely unrelated to the original ticket - but the app_name is derived from the import path of the app - assigning a different Meta.app_label does not actually change the app_name, but in this case the resolver isn't even getting that far. 4 4 > 5 I must admit I was wrong to believe that app_name is problem. After thorough investigation I have found that app_name is plain ascii = 'admin'. But I have found that self.regex.pattern is unicode. When I replaced definition of method __repr__5 No I dont think it is unrelated to the original ticket. But I also must admit that I was wrong to believe that app_name is problem. After thorough investigation I have found that app_name is plain ascii = 'admin'. But I have found that self.regex.pattern is unicode. When I replaced definition of method __repr__ 6 6 7 7 {{{ … … 9 9 return return smart_str(u'<%s %s (%s:%s) %s>' %(self.__class__.__name__, self.urlconf_name, self.app_name, self.namespace, self.regex.pattern)) 10 10 }}} 11 11 12 with the following definition 12 13 … … 18 19 19 20 21 PS: it is __repr__ method of the django.core.urlresolvers.RegexURLResolver class.