Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine retrieve user defined key name

Is there a way to retrieve the key name you set using:

Model(
  key_name = ...
  ...
)

I tried using the key() method but that returns the one Google makes.

like image 413
Ian Burris Avatar asked Jun 30 '10 17:06

Ian Burris


1 Answers

It is key().name()

Docs on the Key class

like image 98
Martin Avatar answered Oct 26 '22 21:10

Martin