mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #8031 - url tag no longer silences NoReverseMatch exceptions since this is very rarely useful
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8211 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -364,12 +364,9 @@ class URLNode(Node): | ||||
|         try: | ||||
|             return reverse(self.view_name, args=args, kwargs=kwargs) | ||||
|         except NoReverseMatch: | ||||
|             try: | ||||
|                 project_name = settings.SETTINGS_MODULE.split('.')[0] | ||||
|                 return reverse(project_name + '.' + self.view_name, | ||||
|                                args=args, kwargs=kwargs) | ||||
|             except NoReverseMatch: | ||||
|                 return '' | ||||
|             project_name = settings.SETTINGS_MODULE.split('.')[0] | ||||
|             return reverse(project_name + '.' + self.view_name, | ||||
|                            args=args, kwargs=kwargs) | ||||
|  | ||||
| class WidthRatioNode(Node): | ||||
|     def __init__(self, val_expr, max_expr, max_width): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user