bruth / django-preserialize

Convert your model instances and querysets into dicts and list with style.
http://bruth.github.io/django-preserialize
BSD 2-Clause "Simplified" License
41 stars 6 forks source link

`:pk` pseudo-selector does not work in `key_map` #4

Open bruth opened 12 years ago

bruth commented 12 years ago

Doing the following will result in the foo key not be included in the output dict.

template = {
    'fields': ['foo'],
    'key_map': {
        'foo': ':pk',
    },
}