Right, if you use the 'reference sometable' syntax, that will allow you to 
have tables reference something which doesn't exist yet. If you use the 
db.othertable format, then the othertable absolutely has to exist.

On Monday, March 25, 2013 7:48:02 AM UTC-7, Cliff Kachinske wrote:
>
> As I understand it, the table does not have to exist when using the 
> 'reference sometable' syntax.  Or anyway that's how it's supposed to work.
>
> I'm not 100% confident in it, though so I always make it a practice to 
> create the reference tables first.
>
> On Monday, March 25, 2013 6:31:16 AM UTC-4, Alan Etkin wrote:
>>
>> I think I kinda figured out the problem. The order of defining tables 
>>> seems matter. Tables to be referenced need to be defined before the 
>>> referencing tables. Guess it's a rookie mistake.
>>
>>  
>> I don't think it's a matter of table definition order. Maybe there aren't 
>> any referenced records in the table so the dropdown widget is not created.
>>
>> About the modified_on created_on, web2py has some features that create 
>> tables under the hood, i.e., for record versioning. Perhaps you want to 
>> disable them at the model by changing the feature options (they are 
>> documented in the book)
>>
>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to