mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	Removed unneeded try/except in Query.names_to_path().
This commit is contained in:
		| @@ -1324,10 +1324,7 @@ class Query(object): | ||||
|                         "querying. If it is a GenericForeignKey, consider " | ||||
|                         "adding a GenericRelation." % name | ||||
|                     ) | ||||
|                 try: | ||||
|                     model = field.model._meta.concrete_model | ||||
|                 except AttributeError: | ||||
|                     model = None | ||||
|                 model = field.model._meta.concrete_model | ||||
|             else: | ||||
|                 # We didn't find the current field, so move position back | ||||
|                 # one step. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user