Fix several cases of assuming that a Profile always has a numeric ID, rather than a named key, which is untrue.

This commit is contained in:
Ian Gulliver
2015-12-24 15:26:43 -08:00
parent b90d3d7b44
commit 30a3e89bfc
3 changed files with 8 additions and 6 deletions

View File

@@ -71,7 +71,7 @@ def session_required(handler):
self.request_json['client_id'], self.verified_google_user)
logging.info('Client: %s', self.client.key().name())
logging.info('Profile: %s',
models.Client.profile.get_value_for_datastore(self.client).id())
models.Client.profile.get_value_for_datastore(self.client).id_or_name())
if old_profile:
self.client.profile.MergeFrom(old_profile)