Fix references with GAE in NDB mode
Fix references with GAE in NDB mode

For reference types the IntegerProperty class (no matter if NDB or
not) constructor is passed the referenced table name as the first
parameter.

For non-NDB, the first parameter is 'verbose_name'. For NDB, the first
parameter is 'name'.

In NDB mode this causes the property to have a wrong identity and
therefore references fail to work properly.

The verbose_name set in non-NDB mode is relatively harmless in
comparison, but seems to be wrong as well as it does not really make
sense.

Do not pass referenced table name to the IntegerProperty constructor in
either case.

stephenrauch/pydal,web2py/pydal,michele-comitini/pydal,niphlod/pydal,willimoa/pydal,manuelep/pydal,kmcheung12/pydal