in order to dynamically create a form, i have to find the property types of a model’s properties at runtime.
appengine docs says that Model.properties() will return a dictionary of properties name and their class type. when i use this method in my code, only the name is returned and the classtype value is always empty.
Model.kind()E.g., for a model like this:
my_model_instance.kind()returnsLargeTextList.Edit (thanks to OP for clarification):
The property information you seek is there, but you’ll need to escape to see it, e.g. in your template:
This returns:
Edit2:
You can also call
properties()on the class itself:and in the template as before (be sure to use the
escapefilter):