matryer/gae-records — Issue #3: Record ID's as non-field is a pain when templating
Author: matryer
Created: 2012-01-27 19:20:32+00:00
State: open

When using templates, it is handy to pass the entire record.Fields map but this excludes the record ID (since this is stored as a field in the struct). Since the interface wouldn't need to change, we should store the ID in the Fields map in the same way we do with other fields, and only be careful to remove it / replace it before and after interacting with the datastore.