mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.7.x] Fixed #22940 -- Added missing string iterpolation parameters in migrations.writer error.
This commit is contained in:
		| @@ -319,7 +319,7 @@ class MigrationWriter(object): | ||||
|                     "and used in the same class body). Please move the " | ||||
|                     "function into the main module body to use migrations.\n" | ||||
|                     "For more information, see https://docs.djangoproject.com/en/1.7/topics/migrations/#serializing-values" | ||||
|                 ) | ||||
|                     % (value.__name__, module_name)) | ||||
|             return "%s.%s" % (module_name, value.__name__), set(["import %s" % module_name]) | ||||
|         # Classes | ||||
|         elif isinstance(value, type): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user