Re: cross-app foreign keys

2006-03-17 Thread Luke Plant
On Monday 13 March 2006 21:24, Adrian Holovaty wrote: > On 3/13/06, Luke Plant <[EMAIL PROTECTED]> wrote: > > If I create a model in my app with foreign key to the User model, > > the SQL for creating the table doesn't add a 'REFERENCES' clause: > > [...] > > It works fine for intra-app relations

Re: cross-app foreign keys

2006-03-13 Thread Adrian Holovaty
On 3/13/06, Luke Plant <[EMAIL PROTECTED]> wrote: > If I create a model in my app with foreign key to the User model, the > SQL for creating the table doesn't add a 'REFERENCES' clause: > [...] > It works fine for intra-app relations, just not cross-app ones. > Is this a known issue? Is it by desi

cross-app foreign keys

2006-03-13 Thread Luke Plant
If I create a model in my app with foreign key to the User model, the SQL for creating the table doesn't add a 'REFERENCES' clause: Model - class Test(models.Model): user = models.ForeignKey(User, null=True) Shell - django-admin.py sqlall myapp --settings='myproj.settings' BEGIN