On 1/11/06, Cliff Wells <[EMAIL PROTECTED]> wrote:
> model.py:
>
> class DocType ( SQLObject ):
>     ...
>
> class DocColumn ( SQLObject ):
>     docType = ForeignKey ( 'DocType' )
>     ...
>
> class Pdf ( SQLObject ):
>     pdf     = ForeignKey ( 'Pdf' )
>     docType = ForeignKey ( 'DocType' )
>     ...
>
>
> Unfortunately 'tg-admin sql create' tries to create DocColumn first
> which of course fails because DocType doesn't yet exist.
>
> Anyone else seeing this?

Hmm... that seems fishy. You would think this would be a widespread problem.

Does
tg-admin sql sql
show you DocColumn coming first with the foreign key pointing to DocType?

Kevin

Reply via email to