mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fix Python 3 support
This commit is contained in:
		| @@ -109,7 +109,7 @@ class MigrationWriter(object): | ||||
|         elif isinstance(value, (datetime.datetime, datetime.date)): | ||||
|             return repr(value), set(["import datetime"]) | ||||
|         # Simple types | ||||
|         elif isinstance(value, (int, long, float, six.binary_type, six.text_type, bool, types.NoneType)): | ||||
|         elif isinstance(value, six.integer_types + (float, six.binary_type, six.text_type, bool, type(None))): | ||||
|             return repr(value), set() | ||||
|         # Django fields | ||||
|         elif isinstance(value, models.Field): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user