diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-01-27 21:16:07 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-01-27 21:16:07 +0000 |
| commit | 4d829c2e0e2589080096354f7d2e4e8c4fb7657c (patch) | |
| tree | 27b2fbbb769177d14d13147ae7a34da91a4a49f8 /django/core/serializers/python.py | |
| parent | e7c6bd9da2eaa2c6915c83fb6c7b4e6e6bd53a52 (diff) | |
newforms-admin: Merged to [4433]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core/serializers/python.py')
| -rw-r--r-- | django/core/serializers/python.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/serializers/python.py b/django/core/serializers/python.py index 859816c226..1e1e6f4bec 100644 --- a/django/core/serializers/python.py +++ b/django/core/serializers/python.py @@ -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 |
