Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Add option for merging a single related field #6

Closed
bruth opened this issue Apr 15, 2013 · 1 comment
Closed

Add option for merging a single related field #6

bruth opened this issue Apr 15, 2013 · 1 comment

Comments

@bruth
Copy link
Owner

bruth commented Apr 15, 2013

This is a common idiom:

template = {
    'fields': ['chr'],
    'key_map': {
        'chr': 'label',
    },
    'merge': True,
}

Which maps a single field on the related model and merges it into the parent model under the same name.

@bruth
Copy link
Owner Author

bruth commented Apr 29, 2013

Implemented using the flat option for model instances.

@bruth bruth closed this as completed Apr 29, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant