No, and in fact, the first method is automatically converted to the second.
However, there are two advantages of the second method (i.e., 'reference
another_table'): (1) the second method can be used if you haven't yet
defined the table being referenced, and (2) with the new lazy_tables
option, the second method is the only way to keep the referenced table lazy
(the first method will trigger the table to be defined).
Anthony
On Sunday, August 26, 2012 2:04:59 PM UTC-4, Sergi Pons Freixes wrote:
>
> Is there any difference between:
>
> db.define_table('sample_table,
> Field('sample_field', 'text'),
> Filed('referenced_field', db.another_table))
>
> and
>
> db.define_table('sample_table,
> Field('sample_field', 'text'),
> Filed('referenced_field', ' reference another_table'))
>
> ?
>
--