mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed a flaw in the serializers that prevented OneToOneFields being serialized as JSON objects.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4433 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -57,7 +57,7 @@ def Deserializer(object_list, **options): | ||||
|     for d in object_list: | ||||
|         # Look up the model and starting build a dict of data for it. | ||||
|         Model = _get_model(d["model"]) | ||||
|         data = {Model._meta.pk.name : d["pk"]} | ||||
|         data = {Model._meta.pk.attname : d["pk"]} | ||||
|         m2m_data = {} | ||||
|          | ||||
|         # Handle each field | ||||
|   | ||||
		Reference in New Issue
	
	Block a user